From 32f7359330afbc39c57f3bf89947327b71ad7204 Mon Sep 17 00:00:00 2001 From: xificurC Date: Tue, 31 Dec 2024 10:11:14 +0100 Subject: [PATCH] [electric-client] propagate peer event handling exceptions --- src/hyperfiddle/electric_client3.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperfiddle/electric_client3.cljs b/src/hyperfiddle/electric_client3.cljs index c785a269..6b43272f 100644 --- a/src/hyperfiddle/electric_client3.cljs +++ b/src/hyperfiddle/electric_client3.cljs @@ -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))