Browse Source

fix: rtc ops

Tienson Qin 1 year ago
parent
commit
3d26b1fef9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/db_worker.cljs

+ 2 - 2
src/main/frontend/db_worker.cljs

@@ -153,8 +153,8 @@
       (let [schema (sqlite-util/get-schema repo)
             conn (sqlite-common-db/get-storage-conn storage schema)]
         (swap! *datascript-conns assoc repo conn)
-        (op-mem-layer/<init-load-from-indexeddb! repo)
-        (listen-to-db! repo conn)
+        (p/let [_ (op-mem-layer/<init-load-from-indexeddb! repo)]
+          (listen-to-db! repo conn))
         nil))))
 
 (defn- iter->vec [iter]