mirror of https://github.com/celery/kombu.git
Use ensure_connection to allow broker failover
This commit is contained in:
parent
259ac2e2bf
commit
816e3dcf34
|
@ -816,7 +816,7 @@ class Connection(object):
|
|||
require a channel.
|
||||
"""
|
||||
# make sure we're still connected, and if not refresh.
|
||||
self.connection
|
||||
self.ensure_connection()
|
||||
if self._default_channel is None:
|
||||
self._default_channel = self.channel()
|
||||
return self._default_channel
|
||||
|
|
Loading…
Reference in New Issue