Skip to content

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

fix: clear auto sync timeout on manual sync

thecodrr8cbe5f421abc
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 5bbb2c9ad..694c4d79e 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -191,6 +191,7 @@ class Database {
}
sync(full = true, force = false) {
+ clearTimeout(this._syncTimeout);
return this.syncer.start(full, force);
}