Commit a17b80c5 authored by Tres Seaver's avatar Tres Seaver

Return early after decode error.

Closes #107.
parent f9e4442d
......@@ -90,6 +90,7 @@ class ServerProtocol(base.Protocol):
except Exception:
logger.exception("Can't deserialize message")
self.close()
return
if message_id == -1:
return # keep-alive
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment