fix an issue with catching network traffic errors

This commit is contained in:
John Bintz 2011-11-14 09:10:40 -05:00
parent c12bf6b01e
commit cc745deaa0
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
require "rack/livereload" require "rack/livereload"
class Rack::LiveReload class Rack::LiveReload
VERSION = '0.2.0' VERSION = '0.2.1'
end end

View File

@ -27,8 +27,11 @@ module Rack
begin begin
http.send_request('GET', uri.path) http.send_request('GET', uri.path)
@use_vendored = false @use_vendored = false
rescue Timeout::Error, Errno::ECONNREFUSED rescue Timeout::Error, Errno::ECONNREFUSED, EOFError
@use_vendored = true @use_vendored = true
rescue => e
$stderr.puts e.inspect
raise e
end end
end end