Skip to content

Commit f1bd150

Browse files
committed
BF: removed redundant quitPsychoJS calls that end html exp early
caused by incorrect indentation - there should be a single call after the routines have all been scheduled
1 parent d68c36b commit f1bd150

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

psychopy/app/builder/experiment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,9 +1824,9 @@ def writeBodyJS(self, script):
18241824
loopStack.append(thisEntry.loop)
18251825
elif thisEntry.getType() == 'LoopTerminator':
18261826
loopStack.remove(thisEntry.loop)
1827-
# also flow should close when done
1828-
code += "flowScheduler.add(quitPsychoJS);\n"
1829-
script.writeIndentedLines(code)
1827+
# also flow should close when done
1828+
code += "flowScheduler.add(quitPsychoJS);\n"
1829+
script.writeIndentedLines(code)
18301830
# handled all the flow entries
18311831
code = ("\n// quit if user presses Cancel in dialog box:\n"
18321832
"dialogCancelScheduler.add(quitPsychoJS);\n"

0 commit comments

Comments
 (0)