summaryrefslogtreecommitdiff
path: root/kafka
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-12-17 10:40:07 -0800
committerDana Powers <dana.powers@gmail.com>2017-01-07 10:18:21 -0800
commit5e92a7027863c359685c700a0b581dbaf689a180 (patch)
tree6268a5b4ce682f9d95543d33cf8b1df3351b8ea9 /kafka
parent0a0449e2deca77f2fb60b73f21de7058de75201a (diff)
downloadkafka-python-connection_error_close.tar.gz
Do not re-close a disconnected connectionconnection_error_close
Diffstat (limited to 'kafka')
-rw-r--r--kafka/conn.py1
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