Skip to content

Commit

Permalink
Merge a969716 into 5c8b3ca
Browse files Browse the repository at this point in the history
  • Loading branch information
jhg committed Apr 30, 2021
2 parents 5c8b3ca + a969716 commit 9b8b454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mutpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def __init__(self, *args, **kwargs):
self.result = None

def terminate(self):
if self.isAlive():
if self.is_alive():
res = ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(self.ident), ctypes.py_object(SystemExit))
if res == 0:
raise ValueError('Invalid thread id.')
Expand Down

0 comments on commit 9b8b454

Please sign in to comment.