From 38af8f2f35372a3bee25242325ee24482550165b Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 1 Aug 2005 16:42:48 +0000 Subject: * 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 --- lib/ping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ping.rb') 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 -- cgit