mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
WIP2
This commit is contained in:
parent
b6a5a02a33
commit
bc69e49cfb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user