aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-30 18:22:15 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-30 18:22:15 -0400
commit300c3b7fd6718c4ccc0847e78547a01d5f1b6f71 (patch)
treed4b68bee1ef47beb581a15b8cf0993a7d748ef31 /MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs
parent3387dac01d7125f830a77f5d0446fda336e294cd (diff)
standardize knowledge of supported image extensions
Diffstat (limited to 'MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs')
-rw-r--r--MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs b/MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs
index a59b15257..43224c6a9 100644
--- a/MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs
+++ b/MediaBrowser.ServerApplication/EntryPoints/LibraryChangedNotifier.cs
@@ -190,12 +190,18 @@ namespace MediaBrowser.ServerApplication.EntryPoints
{
var currentSessions = _sessionManager.Sessions.ToList();
- var users = currentSessions.Select(i => i.UserId ?? Guid.Empty).Where(i => i != Guid.Empty).Distinct().ToList();
+ var users = currentSessions.Select(i => i.User)
+ .Where(i => i != null)
+ .Select(i => i.Id)
+ .Distinct()
+ .ToList();
foreach (var userId in users)
{
var id = userId;
- var webSockets = currentSessions.Where(u => u.UserId.HasValue && u.UserId.Value == id).SelectMany(i => i.WebSockets).ToList();
+ var webSockets = currentSessions.Where(u => u.User != null && u.User.Id == id)
+ .SelectMany(i => i.WebSockets)
+ .ToList();
try
{