Explorar o código

Digest after onPeerDisconnected

Danilo Bargen %!s(int64=7) %!d(string=hai) anos
pai
achega
a12eacbca0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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