1
0
Fork 0
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:
Matthew Draper 2016-01-14 15:59:32 +10:30 committed by Jon Moss
parent 2815db3569
commit 05d753ff31

View file

@ -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