From ce24ae8d700da4225e0d18fa43912bb38fa7e219 Mon Sep 17 00:00:00 2001 From: Matus Skvarla Date: Wed, 29 Oct 2025 02:42:05 +0100 Subject: [PATCH] server: add `continue` after message read error After logging a read error, the function continues to process a potentially invalid message. This commit adds a continue statement to skip the rest of the execution. --- proto/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/server.go b/proto/server.go index c4c5d18..d666001 100644 --- a/proto/server.go +++ b/proto/server.go @@ -74,6 +74,7 @@ func handleMessages(c net.Conn, p Proto, handler MessageHandler) { } log.Printf("Error reading message: %v", err) + continue } mode(func() {