diff options
-rw-r--r-- | kafka/conn.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kafka/conn.py b/kafka/conn.py index 9951cd5..8cb3587 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -207,7 +207,6 @@ class BrokerConnection(object): def connect(self): """Attempt to connect and return ConnectionState""" if self.state is ConnectionStates.DISCONNECTED: - self.close() log.debug('%s: creating new socket', str(self)) # if self.afi is set to AF_UNSPEC, then we need to do a name # resolution and try all available address families |