0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

Terminate connection if incoming message cant be parsed.

This commit is contained in:
Andrey Antukh 2021-12-30 16:28:08 +01:00
parent bf55250ae9
commit d24d45f4cb

View file

@ -115,7 +115,8 @@
(a/offer! input-ch message)) (a/offer! input-ch message))
(catch Throwable e (catch Throwable e
(l/warn :hint "error on decoding incoming message from websocket" (l/warn :hint "error on decoding incoming message from websocket"
:cause e)))) :cause e)
(on-terminate))))
on-pong on-pong
(fn [_ buffer] (fn [_ buffer]