From d6dc49456fcd5be6b034ebd2a9299bda96201972 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Tue, 14 Apr 2015 13:22:34 -0500 Subject: Revert "Revert "Remove all the existing connections on redis reconnect"" This reverts commit 155db8120811b89624fb7e657818eb32ed07301a. --- 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