From c3abbfd577d47640bf6f3097bad5b90c1fea3e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 22 Jul 2021 20:58:39 +0200 Subject: [PATCH] do not handle msgs on nonexisting id. --- server/internal/websocket/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/websocket/handler.go b/server/internal/websocket/handler.go index 431a1691..bdd0d4ee 100644 --- a/server/internal/websocket/handler.go +++ b/server/internal/websocket/handler.go @@ -54,7 +54,7 @@ func (h *MessageHandler) Message(id string, raw []byte) error { session, ok := h.sessions.Get(id) if !ok { - errors.Errorf("unknown session id %s", id) + return errors.Errorf("unknown session id %s", id) } switch header.Event {