1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/ping.rb (Ping.pingecho): should rescue StandardError.

[ruby-dev:26677]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2005-08-01 16:42:48 +00:00
parent fa911fc877
commit 95a17fedb5
2 changed files with 6 additions and 1 deletions

View file

@ -49,7 +49,7 @@ module Ping
end
rescue Errno::ECONNREFUSED
return true
rescue Timeout::Error
rescue Timeout::Error, StandardError
return false
end
return true