A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: throw error if sync is already in progress
thecodrre67ee7534e94
diff --git a/packages/core/api/sync/index.js b/packages/core/api/sync/index.jsindex b91edc678..22e8ba764 100644--- a/packages/core/api/sync/index.js+++ b/packages/core/api/sync/index.js@@ -57,7 +57,10 @@ export default class SyncManager {}async start(full, force) {- if (this.syncMutex.isLocked()) return false;+ if (this.syncMutex.isLocked()) {+ throw new Error("A sync is already in progress.");+ }+return this.syncMutex.runExclusive(async () => {await this.sync.autoSync.start();try {