ignore socket error

This commit is contained in:
Luke Pulverenti 2016-05-30 12:08:46 -04:00
parent 1ef5c88fc2
commit 0619717f38
2 changed files with 11 additions and 1 deletions

View File

@ -1748,6 +1748,11 @@ namespace MediaBrowser.Server.Implementations.Session
public void ReportNowViewingItem(string sessionId, string itemId)
{
if (string.IsNullOrWhiteSpace(itemId))
{
throw new ArgumentNullException("itemId");
}
var item = _libraryManager.GetItemById(new Guid(itemId));
var info = GetItemInfo(item, null, null);

View File

@ -230,7 +230,12 @@ namespace MediaBrowser.Server.Implementations.Session
{
var vals = message.Data.Split('|');
_sessionManager.ReportNowViewingItem(session.Id, vals[1]);
var itemId = vals[1];
if (!string.IsNullOrWhiteSpace(itemId))
{
_sessionManager.ReportNowViewingItem(session.Id, itemId);
}
}
}