diff options
Diffstat (limited to 'src/slskd/Events/EventBus.cs')
| -rw-r--r-- | src/slskd/Events/EventBus.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Events/EventBus.cs b/src/slskd/Events/EventBus.cs index bc05e1b8..c3e418e7 100644 --- a/src/slskd/Events/EventBus.cs +++ b/src/slskd/Events/EventBus.cs @@ -71,12 +71,12 @@ public class EventBus /// <param name="data">The event data.</param> /// <typeparam name="T">The Type of the event.</typeparam> public virtual void Raise<T>(T data) - where T : Event + where T : BaseEvent { Log.Debug("Handling {Type}: {Data}", typeof(T), data); // save the event to the database before broadcasting to consumers - Events.Add(EventRecord.From<T>(data)); + Events.Add(Event.From<T>(data)); // broadcast the event in a fire-and-forget fashion // we don't need to wait for anything, just need to kick off the tasks |
