mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Better schedule pubsub subscribe
This commit is contained in:
parent
9ad20352e9
commit
5858bf3bec
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ module ActionCable
|
|||
callback ||= default_stream_callback(broadcasting)
|
||||
|
||||
streams << [ broadcasting, callback ]
|
||||
pubsub.subscribe broadcasting, &callback
|
||||
EM.next_tick { pubsub.subscribe broadcasting, &callback }
|
||||
|
||||
logger.info "#{self.class.name} is streaming from #{broadcasting}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue