From 5dd0a929a72578c7afbaa242e99cacd4c190ff39 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 9 Apr 2014 17:57:36 +0800 Subject: [PATCH] Finished Behat threads are not killed --- lib/commands/behat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands/behat.py b/lib/commands/behat.py index 4b6f9c9..99c8be8 100644 --- a/lib/commands/behat.py +++ b/lib/commands/behat.py @@ -261,9 +261,9 @@ class BehatCommand(Command): pass # Kill the remaining processes - if phpServer: + if phpServer and phpServer.is_alive(): phpServer.kill() - if seleniumServer: + if seleniumServer and seleniumServer.is_alive(): seleniumServer.kill() # Disable Behat -- 2.11.0