fix: arguments

This commit is contained in:
Tienson Qin
2022-09-29 22:13:45 +08:00
parent 8e4fcb4f8c
commit 7eff58625f

View File

@@ -2863,7 +2863,7 @@
(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))
@@ -2871,14 +2871,14 @@
(<! (-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