Commit cd6f06ca authored by Grégory Wisniewski's avatar Grégory Wisniewski

Send a notification when an unexpected answer is received.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1897 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 02af232f
......@@ -112,6 +112,8 @@ class HandlerSwitcher(object):
logging.debug('Apply handler %r', self._pending[0][1])
else:
logging.error('Unexpected answer: %r', packet)
notification = Packets.Notify('Unexpected answer: %r' % packet)
self._connection.notify(notification)
self._connection.abort()
handler.peerBroken()
......
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