aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection')
-rw-r--r--lib/action_cable/connection/internal_channel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/internal_channel.rb b/lib/action_cable/connection/internal_channel.rb
index 885457d8c2..70e5e58373 100644
--- a/lib/action_cable/connection/internal_channel.rb
+++ b/lib/action_cable/connection/internal_channel.rb
@@ -31,7 +31,7 @@ module ActionCable
case message['type']
when 'disconnect'
logger.info "Removing connection (#{connection_identifier})"
- @websocket.close
+ websocket.close
end
rescue Exception => e
logger.error "There was an exception - #{e.class}(#{e.message})"