summaryrefslogtreecommitdiff
path: root/kafka/client_async.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r--kafka/client_async.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py
index cf57ef9..b0d1f5e 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -551,6 +551,8 @@ class KafkaClient(object):
responses = []
while True:
with self._lock:
+ if self._closed:
+ break
# Attempt to complete pending connections
for node_id in list(self._connecting):