mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 07:46:40 +08:00
Ensure we reset state for Messagebus.track_publish
.
This commit is contained in:
parent
e8f19e004e
commit
0d46c7a19b
@ -13,8 +13,9 @@ module MessageBus::DiagnosticsHelper
|
|||||||
def track_publish
|
def track_publish
|
||||||
@tracking = tracking = []
|
@tracking = tracking = []
|
||||||
yield
|
yield
|
||||||
@tracking = nil
|
|
||||||
tracking
|
tracking
|
||||||
|
ensure
|
||||||
|
@tracking = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user