浏览代码

Use BrokerConnection.connect() instead of .connection property.

Ask Solem 15 年之前
父节点
当前提交
f81e26aa85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/worker/listener.py

+ 1 - 1
celery/worker/listener.py

@@ -217,7 +217,7 @@ class CarrotListener(object):
         def _establish_connection():
             """Establish a connection to the AMQP broker."""
             conn = establish_connection()
-            conn.connection # Connection is established lazily, so connect.
+            conn.connect() # Connection is established lazily, so connect.
             return conn
 
         if not conf.BROKER_CONNECTION_RETRY: