Merge pull request #7184 from mitchellh/sethvargo/rescue_conn

Rescue Errno::ENOTCONN
This commit is contained in:
Seth Vargo 2016-04-05 10:40:38 -04:00
commit 7d98dd2526
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module Vagrant
return true
end
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.
return false
end