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

Fix cancel previous reconnect timeout for iOS when reconnecting

Lennart Grahl преди 6 години
родител
ревизия
679aabd71e
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/controllers/status.ts

+ 2 - 1
src/controllers/status.ts

@@ -305,7 +305,8 @@ export class StatusController {
             };
         })();
 
-        this.$timeout(() => {
+        this.$timeout.cancel(this.reconnectTimeout);
+        this.reconnectTimeout = this.$timeout(() => {
             if (push.send) {
                 this.$log.debug(`Starting new connection with push, reason: ${push.reason}`);
             } else {