mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't execute callbacks on our main listener thread
This commit is contained in:
parent
2815db3569
commit
05d753ff31
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ module ActionCable
|
|||
|
||||
pg_conn.wait_for_notify(1) do |chan, pid, message|
|
||||
@subscribers[chan].each do |callback|
|
||||
callback.call(message)
|
||||
::EM.next_tick { callback.call(message) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue