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): ...@@ -90,6 +90,7 @@ class ServerProtocol(base.Protocol):
except Exception: except Exception:
logger.exception("Can't deserialize message") logger.exception("Can't deserialize message")
self.close() self.close()
return
if message_id == -1: if message_id == -1:
return # keep-alive 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