Commit 3e806bc6 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Handle a connection close in waitAnyMessage.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1805 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 782c41e1
...@@ -195,6 +195,9 @@ class Application(object): ...@@ -195,6 +195,9 @@ class Application(object):
conn, packet = get(block) conn, packet = get(block)
except Empty: except Empty:
break break
if packet is None:
# connection was closed
continue
block = False block = False
try: try:
_handlePacket(conn, packet) _handlePacket(conn, packet)
......
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