Always disable mic and camera on call end

This commit is contained in:
Miriam Zimmerman 2026-01-26 14:13:57 -05:00 committed by GitHub
parent dd3e329d0c
commit c4f2ccdf3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2177,16 +2177,15 @@ export class Call {
this._mediaSessionStarted = true;
}
} else if (state === CallState.Ended) {
if (this._mediaSessionStarted) {
sillyDeadlockProtection(() => {
this._callManager.setOutgoingAudioEnabled(false);
this._callManager.setOutgoingVideoEnabled(false);
});
this._outgoingAudioEnabled = false;
this._outgoingVideoEnabled = false;
this._outgoingVideoIsScreenShare = false;
this._mediaSessionStarted = false;
}
sillyDeadlockProtection(() => {
this._callManager.setOutgoingAudioEnabled(false);
this._callManager.setOutgoingVideoEnabled(false);
this._callManager.setMicrophoneWarmupEnabled(false);
});
this._outgoingAudioEnabled = false;
this._outgoingVideoEnabled = false;
this._outgoingVideoIsScreenShare = false;
this._mediaSessionStarted = false;
}
if (this.handleStateChanged) {