Skip to content

Commit

Permalink
Revert order change in _DummyThread.is_alive
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Mar 8, 2024
1 parent f9d3290 commit a7095e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ def __init__(self):
_DeleteDummyThreadOnDel(self)

def is_alive(self):
if self._started.is_set() and not self._handle.is_done():
if not self._handle.is_done() and self._started.is_set():
return True
raise RuntimeError("thread is not alive")

Expand Down

0 comments on commit a7095e4

Please sign in to comment.