londiste: unregister fix in playback.py
authorPriit Kustala <priitkustala@hotmail.com>
Tue, 28 Apr 2009 13:35:36 +0000 (13:35 +0000)
committerPriit Kustala <priitkustala@hotmail.com>
Wed, 29 Apr 2009 08:38:26 +0000 (08:38 +0000)
python/londiste/playback.py

index 57d6d4607253745f9feab8d51fa59e32e9e8ecee..a7af41656d6d002cf32af70e1bb97646e65e6376 100644 (file)
@@ -313,7 +313,7 @@ class Replicator(CascadedWorker):
 
             if res == SYNC_EXIT:
                 self.log.debug('Sync tables: exit')
-                if not self.copy_thread:
+                if self.copy_thread:
                     self.unregister_consumer()
                 src_db.commit()
                 sys.exit(0)