unknown session id return error.

This commit is contained in:
Miroslav Šedivý 2020-10-28 22:02:42 +01:00
parent 1e3abf51af
commit 541ca80878

View File

@ -61,7 +61,7 @@ func (h *MessageHandler) Message(id string, raw []byte) error {
session, ok := h.sessions.Get(id) session, ok := h.sessions.Get(id)
if !ok { if !ok {
errors.Errorf("unknown session id %s", id) return errors.Errorf("unknown session id %s", id)
} }
switch header.Event { switch header.Event {