Fixed microphone mute/unmute for web clients

master
WolverinDEV 2021-01-09 13:01:41 +01:00
parent d2503aa4e6
commit 38d655eee4
1 changed files with 4 additions and 2 deletions

View File

@ -168,8 +168,10 @@ class JavascriptInput implements AbstractInput {
} catch {}
}
if(this.state != InputState.PAUSED) {
return;
if(this.state === InputState.RECORDING) {
return true;
} else if(this.state === InputState.INITIALIZING) {
return InputStartError.EBUSY;
}
/* do it async since if the doStart fails on the first iteration, we're setting the start promise, after it's getting cleared */