ignore socket error
This commit is contained in:
parent
1ef5c88fc2
commit
0619717f38
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user