Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into release-candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
jpevarnek committed Aug 31, 2015
2 parents 267d6b9 + 8412071 commit ff1a034
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/generic_ui/scripts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,20 @@ export class UserInterface implements ui_constants.UiApi {

if (instanceId) {
this.mapInstanceIdToUser_[instanceId].isSharingWithMe = false;
if (data.error) {
this.bringUproxyToFront();
this.core.disconnectedWhileProxying = instanceId;
}

if (data.error) {
if (instanceId) {
// Auto-retry.
this.core.disconnectedWhileProxying = instanceId;
this.restartProxying();
} else {
// this handles the case where it was a one-time connection
this.core.disconnectedWhileProxying = 'unknown';
}

// regardless, let the user know
this.bringUproxyToFront();
}

this.updateGettingStatusBar_();
Expand Down

0 comments on commit ff1a034

Please sign in to comment.