Procházet zdrojové kódy

Fix do not attempt to connect when redirecting to 'welcome'

Lennart Grahl před 6 roky
rodič
revize
89d9b3a791
2 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 1 1
      src/controllers/status.ts
  2. 5 0
      src/services/webclient.ts

+ 1 - 1
src/controllers/status.ts

@@ -161,7 +161,7 @@ export class StatusController {
      * Attempt to reconnect an Android device after a connection loss.
      */
     private reconnectAndroid(): void {
-        this.$log.warn(this.logTag, `Connection lost (Android). Reconnect attempt #${this.stateService.attempt + 1}`);
+        this.$log.info(this.logTag, `Connection lost (Android). Reconnect attempt #${this.stateService.attempt + 1}`);
 
         // Show expanded status bar (if on 'messenger')
         if (this.$state.includes('messenger')) {

+ 5 - 0
src/services/webclient.ts

@@ -1215,6 +1215,11 @@ export class WebClientService {
             this.previousIncomingChunkSequenceNumber = null;
             this.previousChunkCache = null;
 
+            // Remove chosen task
+            // Note: This implicitly prevents automatic connection attempts
+            //       from the status controller.
+            this.chosenTask = threema.ChosenTask.None;
+
             // Reset general client information
             this.clientInfo = null;