diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-12-17 10:40:07 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-01-07 10:18:21 -0800 |
commit | 5e92a7027863c359685c700a0b581dbaf689a180 (patch) | |
tree | 6268a5b4ce682f9d95543d33cf8b1df3351b8ea9 /kafka | |
parent | 0a0449e2deca77f2fb60b73f21de7058de75201a (diff) | |
download | kafka-python-connection_error_close.tar.gz |
Do not re-close a disconnected connectionconnection_error_close
Diffstat (limited to 'kafka')
-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 |