summaryrefslogtreecommitdiff
path: root/Lib/threading.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 1ad22a430c..26d1018d3e 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -574,6 +574,7 @@ class Thread:
status = "initial"
if self._started.is_set():
status = "started"
+ self.is_alive() # easy way to get ._is_stopped set when appropriate
if self._is_stopped:
status = "stopped"
if self._daemonic: