diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-01 16:42:48 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-01 16:42:48 +0000 |
commit | 8ec208b3fb86e2e461ce3417257b03a2758c09e6 (patch) | |
tree | 984b4e5f0c66eefd6ae4acc3586b7f21892a0497 /lib | |
parent | 7fcbf1d86203fadeed9fac5635695bf3feeb0490 (diff) | |
download | ruby-8ec208b3fb86e2e461ce3417257b03a2758c09e6.tar.gz |
* lib/ping.rb (Ping.pingecho): should rescue StandardError.
[ruby-dev:26677]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ping.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ping.rb b/lib/ping.rb index 7f970f96de..07b46374b2 100644 --- a/lib/ping.rb +++ b/lib/ping.rb @@ -49,7 +49,7 @@ module Ping end rescue Errno::ECONNREFUSED return true - rescue Timeout::Error + rescue Timeout::Error, StandardError return false end return true |