mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
there is a theoretical issue here
This commit is contained in:
6
vendor/gems/message_bus/lib/message_bus.rb
vendored
6
vendor/gems/message_bus/lib/message_bus.rb
vendored
@ -237,7 +237,11 @@ module MessageBus::Implementation
|
|||||||
locals = locals[msg.channel] if locals
|
locals = locals[msg.channel] if locals
|
||||||
|
|
||||||
multi_each(globals,locals, global_globals, local_globals) do |c|
|
multi_each(globals,locals, global_globals, local_globals) do |c|
|
||||||
c.call msg
|
begin
|
||||||
|
c.call msg
|
||||||
|
rescue => e
|
||||||
|
MessageBus.logger.warn "failed to deliver message, skipping #{msg.inspect}\n ex: #{e} backtrace: #{e.backtrace}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue => e
|
||||||
|
Reference in New Issue
Block a user