mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
7fcbf1d862
commit
8ec208b3fb
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Aug 2 01:40:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
|
* lib/ping.rb (Ping.pingecho): should rescue StandardError.
|
||||||
|
[ruby-dev:26677]
|
||||||
|
|
||||||
Mon Aug 1 19:02:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Mon Aug 1 19:02:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* ext/tk/tcltklib.c: refactoring - replaced rb_ivar_defined &
|
* ext/tk/tcltklib.c: refactoring - replaced rb_ivar_defined &
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ module Ping
|
||||||
end
|
end
|
||||||
rescue Errno::ECONNREFUSED
|
rescue Errno::ECONNREFUSED
|
||||||
return true
|
return true
|
||||||
rescue Timeout::Error
|
rescue Timeout::Error, StandardError
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue