summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-24 09:48:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-24 09:48:21 +0000
commit42f0ec97691b4963e61159782ac2af877c8a23b4 (patch)
tree26d71325d8b61fd763b11eb23bec0b30c8004c24 /lib
parentd1f820b557421dec4a1523ff755fd59567d77c46 (diff)
downloadruby-42f0ec97691b4963e61159782ac2af877c8a23b4.tar.gz
ruby-42f0ec97691b4963e61159782ac2af877c8a23b4.tar.xz
ruby-42f0ec97691b4963e61159782ac2af877c8a23b4.zip
* range.c (rb_range_beg_len): returns Qnil only when "beg" points
outside of a range. No boundary check for "end". git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/ping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ping.rb b/lib/ping.rb
index d90551e67..7f970f96d 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