Rescue from Errno::ESRCH in the exit hook in case webkit_server has already ended.

This commit is contained in:
Sean Geoghegan 2012-12-12 17:23:09 +10:30 committed by Matthew Horan
parent 9a8279a38a
commit 701566341c
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ module Capybara::Webkit
else
Process.kill("INT", @pid)
end
rescue Errno::ESRCH
# This just means that the webkit_server process has already ended
end
def discover_port