mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
do not handle msgs on nonexisting id.
This commit is contained in:
parent
46b8c9f42d
commit
c3abbfd577
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user