Dont try to terminate a child that has already exited in test/service _despawn
This commit is contained in:
@@ -59,6 +59,7 @@ class SpawnedService(threading.Thread):
|
|||||||
self.alive = True
|
self.alive = True
|
||||||
|
|
||||||
def _despawn(self):
|
def _despawn(self):
|
||||||
|
if self.child.poll() is None:
|
||||||
self.child.terminate()
|
self.child.terminate()
|
||||||
self.alive = False
|
self.alive = False
|
||||||
for _ in range(50):
|
for _ in range(50):
|
||||||
|
Reference in New Issue
Block a user