Explorar o código

Unset self._connection at close

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
e7d230232f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      celery/backends/tyrant.py

+ 1 - 0
celery/backends/tyrant.py

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