Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
update connection
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Aug 15, 2020
1 parent 256479d commit e5c55da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1145,16 +1145,16 @@ export default class ConnectionManager {
};

}
else if (server.Id && result.Id !== server.Id && instance.validateServerIds !== false) {
else {

console.log('http request succeeded, but found a different server Id than what was expected');
return {
State: 'Unavailable',
ConnectUser: instance.connectUser()
};
if (server.Id && result.Id !== server.Id && instance.validateServerIds !== false) {
server = {
Id: result.Id,
ManualAddress: serverUrl
};
updateServerInfo(server, result);
}

}
else {
return resolveIfAvailable(instance, serverUrl, server, result, connectionMode, serverUrl, options);
}

Expand Down

0 comments on commit e5c55da

Please sign in to comment.