Skip to content

Commit e468d61

Browse files
committed
Only terminate Process if necessary
1 parent 2ca163d commit e468d61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonwhat/local.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ def kill(self):
104104
try:
105105
if self.is_alive():
106106
self.executeTask(TaskKillProcess())
107-
self.terminate()
108107
self.join(timeout=3.0)
109108
if self.is_alive():
110-
raise Exception
109+
self.terminate()
110+
self.join(timeout=3.0)
111111
if self in self.instances:
112112
self.instances.remove(self)
113113
finally:

0 commit comments

Comments
 (0)