Use ensure_connection to allow broker failover

This commit is contained in:
georgepsarakis 2017-04-19 22:00:36 +03:00 committed by George Psarakis
parent 259ac2e2bf
commit 816e3dcf34
1 changed files with 1 additions and 1 deletions

View File

@ -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