mirror of https://github.com/celery/kombu.git
Redis: Disconnect on channel close.
This commit is contained in:
parent
76300d0536
commit
e54a449165
|
@ -176,11 +176,13 @@ class Channel(virtual.Channel):
|
|||
|
||||
def close(self):
|
||||
self._poller.close()
|
||||
super(Channel, self).close()
|
||||
try:
|
||||
self.client.bgsave()
|
||||
self.client.connection.disconnect()
|
||||
except self.ResponseError:
|
||||
pass
|
||||
super(Channel, self).close()
|
||||
|
||||
|
||||
def _open(self):
|
||||
conninfo = self.connection.client
|
||||
|
|
Loading…
Reference in New Issue