From 541ca808786b6a1972e7ebf7e66025bb4bb8d377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 28 Oct 2020 22:02:42 +0100 Subject: [PATCH] unknown session id return error. --- internal/websocket/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/websocket/handler.go b/internal/websocket/handler.go index 001676d9..ed6a2b3a 100644 --- a/internal/websocket/handler.go +++ b/internal/websocket/handler.go @@ -61,7 +61,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 {