Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix "Cannot send data if connection is not in "Connected" state"

Abdullah Atta0c0dff3b28e8
diff --git a/packages/core/api/sync/index.js b/packages/core/api/sync/index.js
index 4eaa11d71..424151e7a 100644
--- a/packages/core/api/sync/index.js
+++ b/packages/core/api/sync/index.js
@@ -399,7 +399,7 @@ class Sync {
await this.connection.stop();
}
- await promiseTimeout(30000, () => this.connection.start());
+ await promiseTimeout(30000, this.connection.start());
}
} catch (e) {
this.logger.warn(e.message);