Browse Source
Avoid `HandlerFactories` being changed during iteration.
Resolve #20625
pull/21786/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.EventBus/Volo/Abp/EventBus/EventBusBase.cs
|
|
|
@ -135,7 +135,7 @@ public abstract class EventBusBase : IEventBus |
|
|
|
{ |
|
|
|
await new SynchronizationContextRemover(); |
|
|
|
|
|
|
|
foreach (var handlerFactories in GetHandlerFactories(eventType)) |
|
|
|
foreach (var handlerFactories in GetHandlerFactories(eventType).ToList()) |
|
|
|
{ |
|
|
|
foreach (var handlerFactory in handlerFactories.EventHandlerFactories) |
|
|
|
{ |
|
|
|
|