summaryrefslogtreecommitdiff
path: root/lib/ping.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-01 16:42:48 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-01 16:42:48 +0000
commit95a17fedb517df78c4134c14470210f881479e90 (patch)
tree3c908b4e0df71b87e475cd92640f1c490fade0cf /lib/ping.rb
parentfa911fc8778aa19d3622f3bf5858fd694d6af1d1 (diff)
* 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
Diffstat (limited to 'lib/ping.rb')
-rw-r--r--lib/ping.rb2
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