Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-04-09 16:48:03 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-04-29 08:55:42 +0300
commit39ad6a9fabdeb828997b09071342cf1742c636a0 (patch)
tree4ea725ac077ed12e80a0d377033c87a634a3d03d /src/PublicShareSidebar.vue
parent9fa0930abe843a8a15eb1ef343ddad40e9934130 (diff)
Add wrappers for signaling related functions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/PublicShareSidebar.vue')
-rw-r--r--src/PublicShareSidebar.vue7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/PublicShareSidebar.vue b/src/PublicShareSidebar.vue
index c4c0372f9..89b628e46 100644
--- a/src/PublicShareSidebar.vue
+++ b/src/PublicShareSidebar.vue
@@ -56,7 +56,7 @@ import {
} from './services/participantsService'
import {
getSignaling,
- getSignalingSync,
+ signalingKill,
} from './utils/webrtc/index'
import browserCheck from './mixins/browserCheck'
@@ -122,10 +122,7 @@ export default {
if (this.token) {
// We have to do this synchronously, because in unload and beforeunload
// Promises, async and await are prohibited.
- const signaling = getSignalingSync()
- if (signaling) {
- signaling.disconnect()
- }
+ signalingKill()
leaveConversationSync(this.token)
}
})