mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
fix: clear sync-state when stopping the current graph's sync
This commit is contained in:
@@ -2851,10 +2851,11 @@
|
||||
(when-let [sm ^SyncManager (state/get-file-sync-manager)]
|
||||
(println "[SyncManager" (:graph-uuid sm) "]" "stopping")
|
||||
(<! (-stop! sm))
|
||||
|
||||
(swap! state/state assoc :file-sync/sync-state {})
|
||||
(println "[SyncManager" (:graph-uuid sm) "]" "stopped")
|
||||
(state/set-file-sync-manager nil)
|
||||
(clear-graph-progress! (:graph-uuid sm)))
|
||||
|
||||
(reset! current-sm-graph-uuid nil)))
|
||||
|
||||
(defn sync-need-password!
|
||||
|
||||
Reference in New Issue
Block a user