diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-24 09:48:21 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-24 09:48:21 +0000 |
commit | 280d014d6d72deac20d4ac3d180718125d5bd56e (patch) | |
tree | b5a3121173a5179382f052482ee4b92e7b9349f1 /lib/ping.rb | |
parent | ca14017bb65ee6316bfd400ac3efd6abe3ab70ed (diff) | |
download | ruby-280d014d6d72deac20d4ac3d180718125d5bd56e.tar.gz |
* range.c (rb_range_beg_len): returns Qnil only when "beg" points
outside of a range. No boundary check for "end".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/ping.rb')
-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 d90551e671..7f970f96de 100644 --- a/lib/ping.rb +++ b/lib/ping.rb @@ -49,7 +49,7 @@ module Ping end rescue Errno::ECONNREFUSED return true - rescue + rescue Timeout::Error return false end return true |