aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-08-11 13:14:45 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-08-11 13:14:45 -0500
commit4a9bf9b7432534e763a1014cd46d388f78c936d3 (patch)
tree84bdfd09d1d292a9a524f61e2934d37f406fd103
parent0223870321edd608785abe6cc5527e9fc6df282d (diff)
parent8fcdfc31c88b33529893c97ace8544200e4a231c (diff)
downloadrails-4a9bf9b7432534e763a1014cd46d388f78c936d3.tar.gz
rails-4a9bf9b7432534e763a1014cd46d388f78c936d3.tar.bz2
rails-4a9bf9b7432534e763a1014cd46d388f78c936d3.zip
Merge pull request #58 from lsylvester/clear-out-stopped-streams
Clear out the streams when they are stopped.
-rw-r--r--lib/action_cable/channel/streams.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/channel/streams.rb b/lib/action_cable/channel/streams.rb
index a37194b884..2d1506ee98 100644
--- a/lib/action_cable/channel/streams.rb
+++ b/lib/action_cable/channel/streams.rb
@@ -88,7 +88,7 @@ module ActionCable
streams.each do |broadcasting, callback|
pubsub.unsubscribe_proc broadcasting, callback
logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
+ end.clear
end
private