We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9422886 commit 8aebc8eCopy full SHA for 8aebc8e
src/MatrixClient.ts
@@ -721,6 +721,12 @@ export class MatrixClient extends EventEmitter {
721
await Promise.resolve(this.storage.setSyncToken(token));
722
}
723
} catch (e) {
724
+ // If we've requested to stop syncing, don't bother checking the error.
725
+ if (this.stopSyncing) {
726
+ LogService.info("MatrixClientLite", "Client stop requested - cancelling sync");
727
+ return;
728
+ }
729
+
730
LogService.error("MatrixClientLite", "Error handling sync " + extractRequestError(e));
731
const backoffTime = SYNC_BACKOFF_MIN_MS + Math.random() * (SYNC_BACKOFF_MAX_MS - SYNC_BACKOFF_MIN_MS);
732
LogService.info("MatrixClientLite", `Backing off for ${backoffTime}ms`);
0 commit comments