summaryrefslogtreecommitdiff
path: root/test/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/service.py')
-rw-r--r--test/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/service.py b/test/service.py
index 9368b85..b986a71 100644
--- a/test/service.py
+++ b/test/service.py
@@ -59,7 +59,8 @@ class SpawnedService(threading.Thread):
self.alive = True
def _despawn(self):
- self.child.terminate()
+ if self.child.poll() is None:
+ self.child.terminate()
self.alive = False
for _ in range(50):
if self.child.poll() is not None: