Skip to content

Commit

Permalink
fix: arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Sep 30, 2022
1 parent 8e4fcb4 commit 7eff586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/fs/sync.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2863,22 +2863,22 @@

(defn <sync-stop []
(go
(when-let [sm ^SyncManager (state/get-file-sync-manager)]
(when-let [sm ^SyncManager (state/get-file-sync-manager (state/get-current-file-sync-graph-uuid))]
(println "[SyncManager" (:graph-uuid sm) "]" "stopping")

(state/clear-file-sync-state! (:graph-uuid sm))

(<! (-stop! sm))

(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!
[]
(when-let [sm ^SyncManager (state/get-file-sync-manager)]
(when-let [sm ^SyncManager (state/get-file-sync-manager (state/get-current-file-sync-graph-uuid))]
(.need-password sm)))

(defn check-graph-belong-to-current-user
Expand Down

0 comments on commit 7eff586

Please sign in to comment.