Skip to content

Commit

Permalink
Correctly close
Browse files Browse the repository at this point in the history
  • Loading branch information
dlunch committed May 8, 2023
1 parent 1d3218a commit b3a1eb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kombu/transport/redis_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ def conn_or_acquire(self, client=None):
else:
yield self.client

def close(self):
for _, _, conn, _ in self.connection.cycle._chan_to_sock:
conn.client.close()

return super().close()

def _create_client(self, asynchronous=False):
conninfo = self.connection.client

Expand Down

0 comments on commit b3a1eb6

Please sign in to comment.