Skip to content

Commit

Permalink
[electric-client] propagate peer event handling exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurC committed Dec 31, 2024
1 parent 96b8777 commit 32f7359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hyperfiddle/electric_client3.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
(when-some [{:keys [code] :as info}
(try
(aset state 0 ws)
(m/? (m/race (send-all ws events) (wait-for-close ws)))
(m/? (m/join {} (send-all ws events) (wait-for-close ws)))
(finally
(aset state 0 nil)
(when-not (= (.-CLOSED js/WebSocket) (.-readyState ws))
Expand Down

0 comments on commit 32f7359

Please sign in to comment.