do not handle msgs on nonexisting id.

This commit is contained in:
Miroslav Šedivý 2021-07-22 20:58:39 +02:00
parent 46b8c9f42d
commit c3abbfd577

View File

@ -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 {