浏览代码

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