Explorar o código

enhance(sync): ensure pwd & keys exists before start sync-manager

rcmerci %!s(int64=3) %!d(string=hai) anos
pai
achega
ce593e42a7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/main/frontend/fs/sync.cljs

+ 1 - 0
src/main/frontend/fs/sync.cljs

@@ -1717,6 +1717,7 @@
                (<! (set-env rsapi config/FILE-SYNC-PROD? nil nil))
                (state/set-file-sync-state repo @*sync-state)
                (state/set-file-sync-manager sm)
+               (<! (ensure-pwd+keys-exists! graph-uuid repo))
                ;; wait seconds to receive all file change events,
                ;; and then drop all of them.
                ;; WHY: when opening a graph(or switching to another graph),