Skip to content

Commit cec06df

Browse files
committed
fixup client.check_version connect loop
1 parent 254a403 commit cec06df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/client_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def check_version(self, node_id=None, timeout=None, **kwargs):
990990
continue
991991
conn = self._conns[try_node]
992992

993-
while not conn.disconnected() and conn._api_version is None and time.time() < end:
993+
while conn.connecting() and time.time() < end:
994994
timeout_ms = min((end - time.time()) * 1000, 200)
995995
self.poll(timeout_ms=timeout_ms)
996996

0 commit comments

Comments
 (0)