mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-09 19:56:44 +01:00
waitForRetry doesn't reject when aborted
This commit is contained in:
parent
8e9c76c26b
commit
0eefc88fe3
@ -92,13 +92,7 @@ export class Reconnector {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof ConnectionError) {
|
if (err instanceof ConnectionError) {
|
||||||
this._setState(ConnectionStatus.Waiting);
|
this._setState(ConnectionStatus.Waiting);
|
||||||
try {
|
await this._retryDelay.waitForRetry();
|
||||||
await this._retryDelay.waitForRetry();
|
|
||||||
} catch (err) {
|
|
||||||
if (!(err instanceof AbortError)) {
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user