9f529f7

Branches > client-handling-rewrite > 9f529f7 > files

Move idk how to explain this whatever

Grahp, 2026-02-27

Commit: 9f529f762a7954ca1807a8fc9b4b7425441c1363
Parent: 628768c

1 changed file:

src/net/bowmap/core.clj modified (view file)

@@ -30,12 +30,12 @@    Packets are parsed and handled synchronously as packet decoding can update     client state, so is impure."   [client bs]-  (ByteBuf/.writeBytes (::buf client) bs)-  (try (handle-packet client)-       (catch Exception e-         (prn "Exception in bytes:" e)-         ;; Can disconnect as well :)-         (.close (::stream client)))))+  (try+    (ByteBuf/.writeBytes (::buf client) bs)+    (handle-packet client)+    (catch Exception e+      (prn "Exception in bytes:" e)+      (.close (::stream client)))))  (defn client-handler [stream _]   (let [client {::state/state ::state/handshaking