Преглед на файлове

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);
             };