Fix issue 3031

Sometimes in use ports can raise a Errno::EACCES exeptions on Windows hosts.
This commit is contained in:
Shawn Neal 2015-01-16 08:03:37 -08:00
parent 21736aa5d4
commit 522bf9ff8b
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ module Vagrant
# to connect. # to connect.
return true return true
end end
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \
Errno::ENETUNREACH, Errno::EACCES
# Any of the above exceptions signal that the port is closed. # Any of the above exceptions signal that the port is closed.
return false return false
end end