From 71db29fad9636f534ae27702b965036a53f7eb85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com> Date: Mon, 7 Jun 2010 12:33:49 +0000 Subject: [PATCH] Remove a just disconnected node has the network event will not be triggered git-svn-id: https://svn.erp5.org/repos/neo/trunk@2136 71dcc9de-d417-0410-9af5-da40c76e7ee4 --- neo/node.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neo/node.py b/neo/node.py index bb29a8a7..9b3f7e53 100644 --- a/neo/node.py +++ b/neo/node.py @@ -464,8 +464,7 @@ class NodeManager(object): if node.isConnected(): # cut this connection, node removed by handler node.getConnection().close() - else: - self.remove(node) + self.remove(node) else: logging.debug('updating node %r to %s %s %s %s', node, *log_args) -- 2.30.9