Skip to content

Commit 069eaf6

Browse files
committed
make sure mainloop timeout is cleared when calling MainLoop#stop
1 parent 0ad41ef commit 069eaf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mainloop/vvvv.mainloop.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ var MainLoop = function(patch, frames_per_second) {
100100
*/
101101
this.stop = function() {
102102
run = false;
103+
if (nodeEnvTimer!==null)
104+
clearTimeout(nodeEnvTimer);
103105
}
104106

105107
/**

0 commit comments

Comments
 (0)