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

Fix wrong method name.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@490 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4242b047
......@@ -83,7 +83,7 @@ class EventHandler(object):
logging.info('malformed packet %x from %s:%d: %s',
packet.getType(), conn.getAddress()[0],
conn.getAddress()[1], error_message)
conn.send(protocol.protocolError(error_message))
conn.notify(protocol.protocolError(error_message))
conn.abort()
self.peerBroken(conn)
......@@ -110,7 +110,7 @@ class EventHandler(object):
else:
message = 'unexpected packet: ' + message
logging.info('%s', message)
conn.send(protocol.protocolError(message))
conn.notify(protocol.protocolError(message))
conn.abort()
self.peerBroken(conn)
......
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