Commit 655a4ea9 authored by Julien Muchembled's avatar Julien Muchembled

client: fix harmless 'unexpected ... AnswerRequestIdentification' exceptions

parent 2cb7bf1b
......@@ -241,7 +241,7 @@ class MTEventHandler(EventHandler):
self.dispatch(conn, packet, kw)
kw = {}
if not (self.dispatcher.dispatch(conn, packet.getId(), packet, kw)
or type(packet) is Packets.Pong):
or type(packet) is Packets.Pong or conn.isClosed()):
raise ProtocolError('Unexpected response packet from %r: %r'
% (conn, packet))
else:
......
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