From 8fcdfc31c88b33529893c97ace8544200e4a231c Mon Sep 17 00:00:00 2001 From: Lachlan Sylvester Date: Mon, 10 Aug 2015 16:50:52 +1000 Subject: Clear out the streams when they are stopped. Otherwise we will keep trying to stop them. --- lib/action_cable/channel/streams.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_cable') 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 -- cgit v1.2.3