Browse Source

Unset self._connection at close

Ask Solem 16 years ago
parent
commit
e7d230232f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      celery/backends/tyrant.py

+ 1 - 0
celery/backends/tyrant.py

@@ -63,6 +63,7 @@ class Backend(BaseBackend):
     def close(self):
     def close(self):
         if self._connection:
         if self._connection:
             self._connection.close()
             self._connection.close()
+            self._connection = None
 
 
     def process_cleanup(self):
     def process_cleanup(self):
         self.close()
         self.close()