diff --git a/src/status_im/protocol/handlers.cljs b/src/status_im/protocol/handlers.cljs index 0689bbd375..be0d8388f6 100644 --- a/src/status_im/protocol/handlers.cljs +++ b/src/status_im/protocol/handlers.cljs @@ -63,12 +63,12 @@ (register-handler :initialize-sync-listener (fn [{:keys [web3 sync-listener] :as db} _] - (when sync-listener - (.stopWatching sync-listener)) - (->> (.isSyncing (.-eth web3) - (fn [error sync] - (dispatch [:update-sync-state error sync]))) - (assoc db :sync-listener)))) + (if-not sync-listener + (->> (.isSyncing (.-eth web3) + (fn [error sync] + (dispatch [:update-sync-state error sync]))) + (assoc db :sync-listener)) + db))) (register-handler :incoming-message (u/side-effect!