diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-08-12 21:01:03 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-08-12 21:01:03 -0500 |
| commit | 82b022b231a65ced183bc0812ba45247392f1486 (patch) | |
| tree | 083425fe924014ab27511d8f1d3ca3dcf5c7549b /src | |
| parent | 10219484bc0510fbffa4d359f33ba0635900ce22 (diff) | |
| download | slskd-82b022b231a65ced183bc0812ba45247392f1486.tar.gz | |
simplify
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/EventBus.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/slskd/Core/EventBus.cs b/src/slskd/Core/EventBus.cs index 5ac6b0a5..a281c9cc 100644 --- a/src/slskd/Core/EventBus.cs +++ b/src/slskd/Core/EventBus.cs @@ -77,10 +77,7 @@ public class EventBus // we don't care about any of these tasks; contractually we are only obligated to invoke them _ = Task.WhenAll(subscribers.Select(subscriber => Task.Run(() => (subscriber.Value as Func<T, Task>)(data)) - .ContinueWith(task => - { - Log.Error(task.Exception, "Subscriber {Name} for {Type} encountered an error: {Message}", subscriber.Key, typeof(T), task.Exception.Message); - }))); + .ContinueWith(task => Log.Error(task.Exception, "Subscriber {Name} for {Type} encountered an error: {Message}", subscriber.Key, typeof(T), task.Exception.Message)))); } /// <summary> |
