Skip to content

Commit

Permalink
use is_running instead of is_alive
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinAV committed Mar 21, 2024
1 parent 5d94b45 commit 95679d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taipy/core/_orchestrator/_dispatcher/_job_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def stop(self, wait: bool = True, timeout: Optional[float] = None):
timeout (Optional[float]): The maximum time to wait. If None, the method will wait indefinitely.
"""
self._STOP_FLAG = True
if wait and self.is_alive():
if wait and self.is_running():
self._logger.debug("Waiting for the dispatcher thread to stop...")
self.join(timeout=timeout)

Expand Down

0 comments on commit 95679d2

Please sign in to comment.