Clear timeout that checks recording started when stop recording

This commit is contained in:
David Rowe 2017-05-10 10:56:23 +12:00
parent a7cc582459
commit 771b76690c

View file

@ -350,7 +350,7 @@
// Cancel check that recording started playing.
index = playerIDs.indexOf(playerID);
if (index !== -1 && playerStartupTimeouts[index] !== null) {
// Cannot clearTimeout() without program log error, so just set null.
Script.clearTimeout(playerStartupTimeouts[index]);
playerStartupTimeouts[index] = null;
}
@ -374,6 +374,7 @@
if (index === -1) {
index = playerIDs.length;
playerIDs[index] = sender;
playerStartupTimeouts[index] = null;
}
playerIsPlayings[index] = message.playing;
playerRecordings[index] = message.recording;