This commit is contained in:
tidusjar 2016-03-22 08:59:31 +00:00
commit da8b6340ae
2 changed files with 17 additions and 7 deletions

View file

@ -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;
}