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: close signalr connection on stop
thecodrre72797495196
diff --git a/packages/core/api/sync/index.js b/packages/core/api/sync/index.jsindex 1de5f4128..380282344 100644--- a/packages/core/api/sync/index.js+++ b/packages/core/api/sync/index.js@@ -73,10 +73,15 @@ export default class Sync {}).build();+ EV.subscribe(EVENTS.userLoggedOut, async () => {+ await this._connection.stop();+ });+this._connection.on("SyncItem", async (type, item, current, total) => {this.stopAutoSync();await this._realtimeMerger.mergeItem(type, JSON.parse(item));EV.publish(EVENTS.appRefreshRequested);+ console.log("sync item", item, current, total);sendSyncProgressEvent("download", total, current);await this.startAutoSync();});