Merge pull request #540 from KoLogicDev/patch-1

Concurrency fix for EventBus
This commit is contained in:
Eduard Tomàs 2019-03-29 08:44:07 +01:00 committed by GitHub
commit a91514aa7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,10 +115,7 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBus
private void RaiseOnEventRemoved(string eventName)
{
var handler = OnEventRemoved;
if (handler != null)
{
OnEventRemoved(this, eventName);
}
handler?.Invoke(this, eventName);
}