Skip to content

Commit 8d12320

Browse files
author
alberto lalama
authored
Allow seamless connection handover (#2749)
1 parent 0856154 commit 8d12320

File tree

1 file changed

+7
-5
lines changed
  • src/generic_ui/scripts

1 file changed

+7
-5
lines changed

src/generic_ui/scripts/ui.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,13 @@ export class UserInterface implements ui_constants.UiApi {
680680

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

0 commit comments

Comments
 (0)