WIP2
This commit is contained in:
parent
b6a5a02a33
commit
bc69e49cfb
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,8 @@ export class Reconnecter {
|
||||||
this._versionsResponse = null;
|
this._versionsResponse = null;
|
||||||
|
|
||||||
while (!this._versionsResponse) {
|
while (!this._versionsResponse) {
|
||||||
|
// TODO: should we wait first or request first?
|
||||||
|
// as we've just failed a request? I guess no harm in trying immediately
|
||||||
try {
|
try {
|
||||||
this._setState(ConnectionState.Reconnecting);
|
this._setState(ConnectionState.Reconnecting);
|
||||||
const versionsRequest = this._hsApi.versions(10000);
|
const versionsRequest = this._hsApi.versions(10000);
|
||||||
|
|
Reference in a new issue