Rescue Errno::ENOTCONN

Fixes GH-7182
This commit is contained in:
Seth Vargo 2016-03-29 18:34:52 +02:00
parent 4641aa767b
commit 3305764f71
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module Vagrant
return true return true
end end
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \ rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \
Errno::ENETUNREACH, Errno::EACCES Errno::ENETUNREACH, Errno::EACCES, Errno::ENOTCONN
# 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