mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-01 03:16:22 +02:00
do not handle msgs on nonexisting id.
This commit is contained in:
parent
46b8c9f42d
commit
c3abbfd577
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue