aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection/base.rb')
-rw-r--r--lib/action_cable/connection/base.rb4
1 files changed, 4 insertions, 0 deletions
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