diff options
-rw-r--r-- | kafka/coordinator/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py index 57da971..bff6286 100644 --- a/kafka/coordinator/base.py +++ b/kafka/coordinator/base.py @@ -314,6 +314,10 @@ class BaseCoordinator(object): cause = self._heartbeat_thread.failed self._heartbeat_thread = None raise cause # pylint: disable-msg=raising-bad-type + + # Awake the heartbeat thread if needed + if self.heartbeat.should_heartbeat(): + self._lock.notify() self.heartbeat.poll() def time_to_next_heartbeat(self): |