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)
|
private void RaiseOnEventRemoved(string eventName)
|
||||||
{
|
{
|
||||||
var handler = OnEventRemoved;
|
var handler = OnEventRemoved;
|
||||||
if (handler != null)
|
handler?.Invoke(this, eventName);
|
||||||
{
|
|
||||||
OnEventRemoved(this, eventName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user