we need to start when online actually, so invert

This commit is contained in:
Bruno Windels 2020-05-07 18:46:45 +02:00
parent 24cb9e3f5c
commit 6b453c1ec4

View File

@ -152,7 +152,7 @@ export class SessionContainer {
// restored the connection, it would have already
// started to session, so check first
// to prevent an extra /versions request
if (!this._session.isStarted) {
if (this._session.isStarted) {
const lastVersionsResponse = await hsApi.versions({timeout: 10000}).response();
this._session.start(lastVersionsResponse);
}