From 1891dbb920138f1b338ba4437653548851cda54c Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Thu, 23 May 2013 21:30:11 -0700 Subject: [PATCH] Reference the top-level Timeout, to avoid conflicts with Rack::Timeout Otherwise we get: # --- lib/rack/livereload/body_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/livereload/body_processor.rb b/lib/rack/livereload/body_processor.rb index 9078c5a..5f47c05 100644 --- a/lib/rack/livereload/body_processor.rb +++ b/lib/rack/livereload/body_processor.rb @@ -45,7 +45,7 @@ module Rack begin http.send_request('GET', uri.path) @use_vendored = false - rescue Timeout::Error, Errno::ECONNREFUSED, EOFError + rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError @use_vendored = true rescue => e $stderr.puts e.inspect