summaryrefslogtreecommitdiffstats
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
commit38af8f2f35372a3bee25242325ee24482550165b (patch)
tree3c908b4e0df71b87e475cd92640f1c490fade0cf /lib/ping.rb
parenta885f731d779ac2d6131b299e61423297f203e5d (diff)
downloadruby-38af8f2f35372a3bee25242325ee24482550165b.tar.gz
ruby-38af8f2f35372a3bee25242325ee24482550165b.tar.xz
ruby-38af8f2f35372a3bee25242325ee24482550165b.zip
* lib/ping.rb (Ping.pingecho): should rescue StandardError.
[ruby-dev:26677] git-svn-id: http://svn.ruby-lang.org/repos/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 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