浏览代码

Digest after onPeerDisconnected

Danilo Bargen 7 年之前
父节点
当前提交
a12eacbca0
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/services/webclient.ts

+ 3 - 1
src/services/webclient.ts

@@ -446,7 +446,9 @@ export class WebClientService {
 
         // Handle disconnecting of a peer
         this.salty.on('peer-disconnected', (ev: saltyrtc.SaltyRTCEvent) => {
-            this.onPeerDisconnected(ev.data);
+            this.$rootScope.$apply(() => {
+                this.onPeerDisconnected(ev.data);
+            });
         });
 
         // Wait for handover to be finished