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):
|
def close(self):
|
||||||
self._poller.close()
|
self._poller.close()
|
||||||
super(Channel, self).close()
|
|
||||||
try:
|
try:
|
||||||
self.client.bgsave()
|
self.client.bgsave()
|
||||||
|
self.client.connection.disconnect()
|
||||||
except self.ResponseError:
|
except self.ResponseError:
|
||||||
pass
|
pass
|
||||||
|
super(Channel, self).close()
|
||||||
|
|
||||||
|
|
||||||
def _open(self):
|
def _open(self):
|
||||||
conninfo = self.connection.client
|
conninfo = self.connection.client
|
||||||
|
|
Loading…
Reference in New Issue