From: Frederic Massart Date: Wed, 9 Apr 2014 09:57:36 +0000 (+0800) Subject: Finished Behat threads are not killed X-Git-Tag: v1.1~11 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=5dd0a929a72578c7afbaa242e99cacd4c190ff39;p=mdk.git Finished Behat threads are not killed --- 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