Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Drop heartbeat_thread reference after close
  • Loading branch information
dpkp committed Dec 21, 2017
commit e579490d8acaaf4fc75a08bb41ad576bcf200fb2
1 change: 1 addition & 0 deletions kafka/coordinator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ def close(self):
with self._lock:
if self._heartbeat_thread is not None:
self._heartbeat_thread.close()
self._heartbeat_thread = None
self.maybe_leave_group()

def maybe_leave_group(self):
Expand Down