提交 05d753ff 编写于 作者: M Matthew Draper 提交者: Jon Moss

Don't execute callbacks on our main listener thread

上级 2815db35
......@@ -57,7 +57,7 @@ def listen
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册