diff --git a/src/component/main.vue b/src/component/main.vue index 37a95d38..ef36c60d 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -184,6 +184,10 @@ this.websocket.disconnect(new Error('url changed')) } + if (this.watching) { + this.webrtc.disconnect() + } + if (this.authenticated) { Vue.set(this.state.connection, 'authenticated', false) }