mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-15 14:52:20 +01:00
add udp error handling
This commit is contained in:
@@ -124,9 +124,17 @@ namespace Emby.Server.Implementations.Security
|
||||
//the rest of the lines should be pairs of features and timestamps
|
||||
for (var i = 2; i < contents.Length; i = i + 2)
|
||||
{
|
||||
var feat = Guid.Parse(contents[i]);
|
||||
var line = contents[i];
|
||||
if (string.IsNullOrWhiteSpace(line))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
SetUpdateRecord(feat, new DateTime(Convert.ToInt64(contents[i + 1])));
|
||||
Guid feat;
|
||||
if (Guid.TryParse(line, out feat))
|
||||
{
|
||||
SetUpdateRecord(feat, new DateTime(Convert.ToInt64(contents[i + 1])));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user