From 0eefc88fe3261a25a0ab7bd5fa993aeabad2b225 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 5 May 2020 23:13:41 +0200 Subject: [PATCH] waitForRetry doesn't reject when aborted --- src/matrix/net/Reconnector.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/matrix/net/Reconnector.js b/src/matrix/net/Reconnector.js index d394cb01..78e5e66f 100644 --- a/src/matrix/net/Reconnector.js +++ b/src/matrix/net/Reconnector.js @@ -92,13 +92,7 @@ export class Reconnector { } catch (err) { if (err instanceof ConnectionError) { this._setState(ConnectionStatus.Waiting); - try { - await this._retryDelay.waitForRetry(); - } catch (err) { - if (!(err instanceof AbortError)) { - throw err; - } - } + await this._retryDelay.waitForRetry(); } else { throw err; }