소스 검색

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),