Skip to content

Commit

Permalink
Fix do not attempt to connect when redirecting to 'welcome'
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrahl committed May 7, 2019
1 parent d3ccf80 commit 75ed742
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
5 changes: 5 additions & 0 deletions src/services/webclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 75ed742

Please sign in to comment.