]> git.saurik.com Git - redis.git/blobdiff - client-libraries/ruby/lib/better_timeout.rb
Lua client updated
[redis.git] / client-libraries / ruby / lib / better_timeout.rb
index ac12c6ebe1a0e1b7df98d0e5741c4cee4d5dae22..818909a88de2998968e5285d81e8a356402744a6 100644 (file)
@@ -163,6 +163,9 @@ end
 # Another name for Timeout::Error, defined for backwards compatibility with
 # earlier versions of timeout.rb.
 
+class Object
+  remove_const(:TimeoutError) if const_defined?(:TimeoutError)
+end
 TimeoutError = Timeout::Error # :nodoc:
 
 if __FILE__ == $0