lib/checkcheckit/console.rb in checkcheckit-0.1.0 vs lib/checkcheckit/console.rb in checkcheckit-0.1.1
- old
+ new
@@ -48,10 +48,10 @@
begin
@client = web_socket.connect(web_service_url, sync: true) do
after_start { emit('register', {list_id: list_id}) }
end
- rescue Errno::ECONNREFUSED, WebSocket::Error => e
+ rescue Errno::ECONNREFUSED, WebSocket::Error, RuntimeError => e
STDERR.puts "Websocket refused connection - using POST"
@use_post = true
end
end