lib/billy/proxy.rb in puffing-billy-2.4.0 vs lib/billy/proxy.rb in puffing-billy-2.4.1
- old
+ new
@@ -60,10 +60,10 @@
def port_in_use?(port)
s = TCPSocket.new(host, port)
s.close
Billy.log(:info, "puffing-billy: Waiting for event machine to shutdown on port #{port}")
s
- rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL, Errno::ENETUNREACH
+ rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL, Errno::ENETUNREACH, Errno::ECONNRESET
false
end
def main_loop
EM.run do