mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 19:24:15 +01:00
w/e
This commit is contained in:
parent
9bdb359391
commit
1387e08536
1 changed files with 19 additions and 20 deletions
|
|
@ -128,8 +128,8 @@ public sealed class MareMediator : IHostedService
|
|||
|
||||
private void ExecuteMessage(MessageBase message)
|
||||
{
|
||||
if (_subscriberDict.TryGetValue(message.GetType(), out HashSet<SubscriberAction>? subscribers) && subscribers != null && subscribers.Any())
|
||||
{
|
||||
if (!_subscriberDict.TryGetValue(message.GetType(), out HashSet<SubscriberAction>? subscribers) || subscribers == null || !subscribers.Any()) return;
|
||||
|
||||
HashSet<SubscriberAction> subscribersCopy = new HashSet<SubscriberAction>();
|
||||
lock (_addRemoveLock)
|
||||
{
|
||||
|
|
@ -155,7 +155,6 @@ public sealed class MareMediator : IHostedService
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ExecuteSubscriber<T>(SubscriberAction subscriber, T message) where T : MessageBase
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue