remove redundant codes

This commit is contained in:
rcmerci
2023-09-07 21:16:03 +08:00
committed by Andelf
parent c346116639
commit 0cef911069

View File

@@ -3397,12 +3397,9 @@
(defn <sync-start
[]
(go
(when (and (not @*sync-starting)
(<! (<should-start-sync?)))
(when-not @*sync-starting
(reset! *sync-starting true)
(if-not (and (state/enable-sync?)
(or (nil? (state/get-file-sync-state))
(= ::stop (:state (state/get-file-sync-state))))
(if-not (and (<! (<should-start-sync?))
(<! (<connectivity-testing)))
(reset! *sync-starting false)
(try