From 6cca23278ff10b023cec31ee92ee4b43a01c096d Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Sat, 28 Aug 2010 08:29:35 +0000 Subject: [PATCH] Close last replication connection when done. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2258 71dcc9de-d417-0410-9af5-da40c76e7ee4 --- neo/storage/replicator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neo/storage/replicator.py b/neo/storage/replicator.py index 6c47c7fb..cc178526 100644 --- a/neo/storage/replicator.py +++ b/neo/storage/replicator.py @@ -232,6 +232,9 @@ class Replicator(object): except KeyError: pass self.current_partition = None + if not self.pending(): + self.current_connection.close() + self.current_connection = None def act(self): # If the new partition list is not empty, I must ask a critical -- 2.30.9