Commit 5367588c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Factorize error handlers with handleConnectionLost()


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1145 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 79c71851
......@@ -50,16 +50,7 @@ class BootstrapManager(EventHandler):
EventHandler.connectionFailed(self, conn)
self.current = None
def connectionClosed(self, conn):
EventHandler.connectionClosed(self, conn)
self.current = None
def timeoutExpired(self, conn):
EventHandler.timeoutExpired(self, conn)
self.current = None
def peerBroken(self, conn):
EventHandler.peerBroken(self, conn)
def handleConnectionLost(self, conn, new_state):
self.current = None
def handleNotReady(self, conn, packet, message):
......
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