Skip to content

Commit

Permalink
Allow seamless connection handover (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto lalama committed Sep 2, 2016
1 parent 0856154 commit 8d12320
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/generic_ui/scripts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,13 @@ export class UserInterface implements ui_constants.UiApi {

// regardless, let the user know
this.bringUproxyToFront();
} else {
// Clear the browser proxy settings. This is necessary in case the
// proxy was stopped when the user was signed out of the social network.
// In the case where the user clicked stop, this will have no effect
// (this function is idempotent).
} else if (this.instanceGettingAccessFrom_ === null) {
// Clear the browser proxy settings only if there is no active connection.
// Otherwise, this is a connection handover and clearing the proxy
// settings will interrupt the active session.
// This is necessary in case the proxy was stopped when the user was
// signed out of the social network. In the case where the user clicked
// stop, this will have no effect (this function is idempotent).
this.browserApi.stopUsingProxy();
}

Expand Down

0 comments on commit 8d12320

Please sign in to comment.