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 | 7dd929a37e6e3f9f5366cad2d1fc711cfb9c9e8a (patch) | |
| tree | 984b4e5f0c66eefd6ae4acc3586b7f21892a0497 /lib | |
| parent | 5ec0ed4fecfb96151a161719cc87abe62b4c68ae (diff) | |
| download | ruby-7dd929a37e6e3f9f5366cad2d1fc711cfb9c9e8a.tar.gz ruby-7dd929a37e6e3f9f5366cad2d1fc711cfb9c9e8a.tar.xz ruby-7dd929a37e6e3f9f5366cad2d1fc711cfb9c9e8a.zip | |
* lib/ping.rb (Ping.pingecho): should rescue StandardError.
[ruby-dev:26677]
git-svn-id: http://svn.ruby-lang.org/repos/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 7f970f96d..07b46374b 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 |
