forked from mystiq/hydrogen-web
add TODO comment
This commit is contained in:
parent
464615ab21
commit
9712b397ce
1 changed files with 4 additions and 0 deletions
|
@ -152,6 +152,10 @@ export class SessionContainer {
|
|||
// restored the connection, it would have already
|
||||
// started to session, so check first
|
||||
// to prevent an extra /versions request
|
||||
|
||||
// TODO: this doesn't look logical, but works. Why?
|
||||
// I think because isStarted is true by default. That's probably not what we intend.
|
||||
// I think there is a bug here, in that even if the reconnector already started the session, we'd still do this.
|
||||
if (this._session.isStarted) {
|
||||
const lastVersionsResponse = await hsApi.versions({timeout: 10000}).response();
|
||||
this._session.start(lastVersionsResponse);
|
||||
|
|
Loading…
Reference in a new issue