Browse Source

Merge pull request #540 from KoLogicDev/patch-1

Concurrency fix for EventBus
pull/983/head
Eduard Tomàs 5 years ago
committed by GitHub
parent
commit
a91514aa7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/BuildingBlocks/EventBus/EventBus/InMemoryEventBusSubscriptionsManager.cs

+ 1
- 4
src/BuildingBlocks/EventBus/EventBus/InMemoryEventBusSubscriptionsManager.cs View File

@ -115,10 +115,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)
{
OnEventRemoved(this, eventName);
}
handler?.Invoke(this, eventName);
} }


Loading…
Cancel
Save