From 6496e7e22996cacfa8bdb8c4d5cb9499ac2ad24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 25 Mar 2021 14:14:56 +0100 Subject: [PATCH] WebRTC disconnect on URL switching. --- src/component/main.vue | 4 ++++ 1 file changed, 4 insertions(+) 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) }