You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Stop keep alive, when sync was stoped (#3720)
* T-Defect: stop keep alive, when sync was stoped Signed-off-by: Malte Finsterwalder <malte@holi.team> * T-Defect: add tests for keep alive Signed-off-by: Malte Finsterwalder <malte@holi.team> * fix copyright year Signed-off-by: Malte Finsterwalder <malte@holi.team> * fix copyright Signed-off-by: Malte Finsterwalder <malte@holi.team> --------- Signed-off-by: Malte Finsterwalder <malte@holi.team> Co-authored-by: Malte Finsterwalder <malte@holi.team>
This commit is contained in:
committed by
GitHub
parent
425cf6b91e
commit
fde6cebc20
@@ -1552,7 +1552,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
this.clientOpts.threadSupport = this.clientOpts.experimentalThreadSupport;
|
||||
}
|
||||
|
||||
this.syncApi.sync();
|
||||
this.syncApi.sync().catch((e) => logger.info("Sync startup aborted with an error:", e));
|
||||
|
||||
if (this.clientOpts.clientWellKnownPollPeriod !== undefined) {
|
||||
this.clientWellKnownIntervalID = setInterval(() => {
|
||||
|
||||
Reference in New Issue
Block a user