mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
there is a theoretical issue here
This commit is contained in:
4
vendor/gems/message_bus/lib/message_bus.rb
vendored
4
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|
|
||||||
|
begin
|
||||||
c.call msg
|
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