[Neo-report] r2258 vincent - /trunk/neo/storage/replicator.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Aug 28 10:29:35 CEST 2010


Author: vincent
Date: Sat Aug 28 10:29:35 2010
New Revision: 2258

Log:
Close last replication connection when done.

Modified:
    trunk/neo/storage/replicator.py

Modified: trunk/neo/storage/replicator.py
==============================================================================
--- trunk/neo/storage/replicator.py [iso-8859-1] (original)
+++ trunk/neo/storage/replicator.py [iso-8859-1] Sat Aug 28 10:29:35 2010
@@ -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





More information about the Neo-report mailing list