fix an issue with catching network traffic errors
This commit is contained in:
parent
c12bf6b01e
commit
cc745deaa0
@ -1,6 +1,6 @@
|
||||
require "rack/livereload"
|
||||
|
||||
class Rack::LiveReload
|
||||
VERSION = '0.2.0'
|
||||
VERSION = '0.2.1'
|
||||
end
|
||||
|
||||
|
@ -27,8 +27,11 @@ module Rack
|
||||
begin
|
||||
http.send_request('GET', uri.path)
|
||||
@use_vendored = false
|
||||
rescue Timeout::Error, Errno::ECONNREFUSED
|
||||
rescue Timeout::Error, Errno::ECONNREFUSED, EOFError
|
||||
@use_vendored = true
|
||||
rescue => e
|
||||
$stderr.puts e.inspect
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user