waitForRetry doesn't reject when aborted

This commit is contained in:
Bruno Windels 2020-05-05 23:13:41 +02:00
parent 8e9c76c26b
commit 0eefc88fe3

View File

@ -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;
}