diff --git a/src/lib/WebRTC.js b/src/lib/WebRTC.js index 30c12b4..1c047df 100644 --- a/src/lib/WebRTC.js +++ b/src/lib/WebRTC.js @@ -663,6 +663,12 @@ class WebRTCController { this.playSound("Watch"); }, onUnwatch(msg) { + this.DebugChannel(`BareRTC Unwatch received from: ${msg.username}

` + + `Current watching: ${JSON.stringify(Object.keys(this.webcam.watching))}
` + + `Was in watch list: ${this.webcam.watching[msg.username] == undefined ? 'NO!' : 'YES'}
` + + `My camera is: ${this.webcam.active ? 'active': 'not active'}`, + ); + // The user has closed our video feed. delete (this.webcam.watching[msg.username]); this.playSound("Unwatch");