Fix E2E error
This commit is contained in:
parent
82e41e5b4e
commit
1bd9331bfa
1 changed files with 10 additions and 2 deletions
|
|
@ -273,11 +273,19 @@ export class Syncer {
|
|||
|
||||
public stop(): void {
|
||||
clearInterval(this.refreshApplyRemoteChangesWebSocketInterval);
|
||||
this.applyRemoteChangesWebSocket?.close();
|
||||
try {
|
||||
this.applyRemoteChangesWebSocket?.close();
|
||||
} catch (e) {
|
||||
this.logger.warn(`Failed to close WebSocket: ${e}`);
|
||||
}
|
||||
}
|
||||
|
||||
private updateWebSocket(settings: SyncSettings): void {
|
||||
this.applyRemoteChangesWebSocket?.close();
|
||||
try {
|
||||
this.applyRemoteChangesWebSocket?.close();
|
||||
} catch (e) {
|
||||
this.logger.warn(`Failed to close WebSocket: ${e}`);
|
||||
}
|
||||
|
||||
if (!settings.isSyncEnabled) {
|
||||
this.applyRemoteChangesWebSocket = undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue