Skip to content

Commit

Permalink
Reference the top-level Timeout, to avoid conflicts with Rack::Timeout
Browse files Browse the repository at this point in the history
Otherwise we get: #<NameError: uninitialized constant Rack::Timeout::Error>
  • Loading branch information
Empact committed May 24, 2013
1 parent e43835b commit 1891dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/livereload/body_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def use_vendored?
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
Expand Down

0 comments on commit 1891dbb

Please sign in to comment.