浏览代码

Unset self._connection at close

Ask Solem 16 年之前
父节点
当前提交
e7d230232f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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()