瀏覽代碼

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

rcmerci 3 年之前
父節點
當前提交
ce593e42a7
共有 1 個文件被更改,包括 1 次插入0 次删除
  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),