mirror of https://github.com/celery/kombu.git
Beanstalk: Close connection on channel close.
This commit is contained in:
parent
6989b4e31a
commit
5b7f4342b3
|
@ -97,6 +97,11 @@ class Channel(virtual.Channel):
|
|||
conn.connect()
|
||||
return conn
|
||||
|
||||
def close(self):
|
||||
if self._client is not None:
|
||||
return self._client.close()
|
||||
super(Channel, self).close()
|
||||
|
||||
@property
|
||||
def client(self):
|
||||
if self._client is None:
|
||||
|
|
Loading…
Reference in New Issue