mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
core: fix "Cannot send data if connection is not in "Connected" state"
This commit is contained in:
committed by
Abdullah Atta
parent
3ab6c4646c
commit
0c0dff3b28
@@ -399,7 +399,7 @@ class Sync {
|
|||||||
await this.connection.stop();
|
await this.connection.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
await promiseTimeout(30000, () => this.connection.start());
|
await promiseTimeout(30000, this.connection.start());
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.warn(e.message);
|
this.logger.warn(e.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user