mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
parent
206fd74d7f
commit
da8b6340ae
2 changed files with 17 additions and 7 deletions
|
@ -62,12 +62,9 @@ namespace PlexRequests.Services.Notification
|
|||
|
||||
public static void Subscribe(INotification notification)
|
||||
{
|
||||
Log.Trace("Subscribing Observer {0}", notification.NotificationName);
|
||||
INotification notificationValue;
|
||||
if (Observers.TryGetValue(notification.NotificationName, out notificationValue))
|
||||
{
|
||||
Log.Trace("Observer {0} already exists", notification.NotificationName);
|
||||
// Observer already exists
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue