From 50dd79c5953f3c34db162572dca6042a5175ffd2 Mon Sep 17 00:00:00 2001 From: kegsay Date: Thu, 13 Oct 2022 13:18:31 +0100 Subject: [PATCH] Check for AbortError, not any generic connection error, to avoid tightlooping (#2752) --- src/sliding-sync.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sliding-sync.ts b/src/sliding-sync.ts index 2c42751a0..480ee818c 100644 --- a/src/sliding-sync.ts +++ b/src/sliding-sync.ts @@ -19,7 +19,6 @@ import { MatrixClient } from "./client"; import { IRoomEvent, IStateEvent } from "./sync-accumulator"; import { TypedEventEmitter } from "./models/typed-event-emitter"; import { sleep, IDeferred, defer } from "./utils"; -import { ConnectionError } from "./http-api"; // /sync requests allow you to set a timeout= but the request may continue // beyond that and wedge forever, so we need to track how long we are willing @@ -852,7 +851,7 @@ export class SlidingSync extends TypedEventEmitter