Concurrency fix for EventBus
Prevent a possible race condition in InMemoryEventBusSubscriptionsManager
This commit is contained in:
parent
d8d48ae188
commit
caf16bc03d
@ -112,10 +112,7 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus
|
||||
private void RaiseOnEventRemoved(string eventName)
|
||||
{
|
||||
var handler = OnEventRemoved;
|
||||
if (handler != null)
|
||||
{
|
||||
OnEventRemoved(this, eventName);
|
||||
}
|
||||
handler?.Invoke(this, eventName);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user