From 4ac6cfefbb84a6b6ae095c20e990e5807caa9105 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Mon, 13 Apr 2015 16:24:53 -0500 Subject: Remove all the existing connections on redis reconnect --- lib/action_cable/connection/base.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/action_cable/connection') diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index e8126f3d75..93db5b3dba 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -100,6 +100,10 @@ module ActionCable end def handle_exception + close_connection + end + + def close_connection logger.error "Closing connection" @websocket.close -- cgit v1.2.3