瀏覽代碼

Fixed camqadm to work with Kombu

Ask Solem 14 年之前
父節點
當前提交
ac778d5944
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/bin/camqadm.py

+ 1 - 1
celery/bin/camqadm.py

@@ -318,7 +318,7 @@ class AMQShell(cmd.Cmd):
     def _reconnect(self):
         """Re-establish connection to the AMQP server."""
         self.conn = self.connect(self.conn)
-        self.chan = self.conn.create_backend().channel
+        self.chan = self.conn.channel()
         self.needs_reconnect = False
 
     @property