aboutsummaryrefslogtreecommitdiff
path: root/server/aoprotocol.py
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-09-16 20:50:22 +0200
committerCerapter <cerap@protonmail.com>2018-09-16 20:50:22 +0200
commit851d1de1be6db6bcddfcc6a501e9eadc49b4f548 (patch)
treeb8b8a16917a17b7ca204a1a11d6bb6163c8149ed /server/aoprotocol.py
parent41e12d304e7c4dd294c147eebd87f2a478ea84b7 (diff)
Websocket update.
Diffstat (limited to 'server/aoprotocol.py')
-rw-r--r--server/aoprotocol.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py
index f07571dd..2adfc916 100644
--- a/server/aoprotocol.py
+++ b/server/aoprotocol.py
@@ -87,8 +87,7 @@ class AOProtocol(asyncio.Protocol):
self.client.disconnect()
for msg in self.get_messages():
if len(msg) < 2:
- self.client.disconnect()
- return
+ continue
# general netcode structure is not great
if msg[0] in ('#', '3', '4'):
if msg[0] == '#':
@@ -100,7 +99,7 @@ class AOProtocol(asyncio.Protocol):
cmd, *args = msg.split('#')
self.net_cmd_dispatcher[cmd](self, args)
except KeyError:
- return
+ logger.log_debug('[INC][UNK]{}'.format(msg), self.client)
def connection_made(self, transport):
""" Called upon a new client connecting