as per code review

This commit is contained in:
Chris Lane
2016-04-14 20:45:26 -07:00
parent 92436c0ec0
commit 86130cbbab

View File

@@ -134,9 +134,9 @@ class KafkaClient(object):
def __del__(self):
if hasattr(self, '_wake_r'):
os.close(self._wake_r)
self._wake_r.close()
if hasattr(self, '_wake_w'):
os.close(self._wake_w)
self._wake_w.close()
def _bootstrap(self, hosts):
# Exponential backoff if bootstrap fails