forked from mystiq/hydrogen-web
we need to start when online actually, so invert
This commit is contained in:
parent
24cb9e3f5c
commit
6b453c1ec4
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ export class SessionContainer {
|
||||||
// restored the connection, it would have already
|
// restored the connection, it would have already
|
||||||
// started to session, so check first
|
// started to session, so check first
|
||||||
// to prevent an extra /versions request
|
// to prevent an extra /versions request
|
||||||
if (!this._session.isStarted) {
|
if (this._session.isStarted) {
|
||||||
const lastVersionsResponse = await hsApi.versions({timeout: 10000}).response();
|
const lastVersionsResponse = await hsApi.versions({timeout: 10000}).response();
|
||||||
this._session.start(lastVersionsResponse);
|
this._session.start(lastVersionsResponse);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue