Properly cancel frozen video intervals

This commit is contained in:
Noah 2023-09-13 21:51:00 -07:00
parent d01bae9966
commit b7dc4c8df6

View File

@ -2009,7 +2009,7 @@ export default {
// Clean up any lingering camera freeze states. // Clean up any lingering camera freeze states.
delete (this.WebRTC.frozenStreamDetected[username]); delete (this.WebRTC.frozenStreamDetected[username]);
if (this.WebRTC.frozenStreamInterval[username]) { if (this.WebRTC.frozenStreamInterval[username]) {
clearInterval(this.WebRTC.frozenStreamInterval); clearInterval(this.WebRTC.frozenStreamInterval[username]);
delete (this.WebRTC.frozenStreamInterval[username]); delete (this.WebRTC.frozenStreamInterval[username]);
} }
@ -2053,7 +2053,7 @@ export default {
// Clean up any lingering camera freeze states. // Clean up any lingering camera freeze states.
delete (this.WebRTC.frozenStreamDetected[username]); delete (this.WebRTC.frozenStreamDetected[username]);
if (this.WebRTC.frozenStreamInterval[username]) { if (this.WebRTC.frozenStreamInterval[username]) {
clearInterval(this.WebRTC.frozenStreamInterval); clearInterval(this.WebRTC.frozenStreamInterval[username]);
delete (this.WebRTC.frozenStreamInterval[username]); delete (this.WebRTC.frozenStreamInterval[username]);
} }