浏览代码

Don't reload data on ICE reconnect (#349)

If the ICE connection manages to reconnect, no data loss should occur on
a reliable DataChannel connection. Therefore we don't need to reload the
initial data again.
Danilo Bargen 8 年之前
父节点
当前提交
c0ca460f91
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      src/services/webclient.ts

+ 0 - 7
src/services/webclient.ts

@@ -413,13 +413,6 @@ export class WebClientService {
 
             // On state changes in the PeerConnectionHelper class, let state service know about it
             this.pcHelper.onConnectionStateChange = (state: threema.RTCConnectionState) => {
-                if (state === 'connected' && this.stateService.wasConnected) {
-                    // This happens if a lost connection could be restored
-                    // without resetting the peer connection.
-                    // Request initial data again, since some packets could have been lost
-                    // while the connection was gone.
-                    this._requestInitialData();
-                }
                 this.stateService.updateRtcConnectionState(state);
             };