Sfoglia il codice sorgente

Digest after onPeerDisconnected

Danilo Bargen 7 anni fa
parent
commit
a12eacbca0
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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