mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Clear timeout that checks recording started when stop recording
This commit is contained in:
parent
a7cc582459
commit
771b76690c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue