소스 검색

fix(sync): drain finished-local->remote-chan before <sync-local->remote-now

rcmerci 2 년 전
부모
커밋
8083b9b6e0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/frontend/fs/sync.cljs

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

@@ -3006,6 +3006,7 @@
                                                   (go
                                                     ;; Wait for file watcher events
                                                     (<! (timeout 2000))
+                                                    (util/drain-chan finished-local->remote-chan)
                                                     (<! (<sync-local->remote-now))
                                                     (<! finished-local->remote-chan)
                                                     (prn "finish task: " @*task-id)