0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix websocket unexpected exception on exportation module

A regression caused by the previous commit that refactos
the websockets API and its state management.
This commit is contained in:
Andrey Antukh 2022-06-29 14:39:56 +02:00
parent ebe8fdcba8
commit 9c194ee3cb

View file

@ -55,6 +55,7 @@
(rx/filter (ptk/type? ::initialize) stream))]
(->> (rx/merge
(rx/of #(assoc % :ws-conn ws))
(->> (ws/get-rcv-stream ws)
(rx/filter ws/message-event?)
(rx/map :payload)
@ -69,6 +70,10 @@
(defn finalize
[]
(ptk/reify ::finalize
ptk/UpdateEvent
(update [_ state]
(dissoc state :ws-conn))
ptk/EffectEvent
(effect [_ _ _]
(l/trace :hint "event:finalize" :fn "effect")