Replace Task.WaitAll with Task.Wait

This commit is contained in:
Bond_009 2020-11-14 20:30:08 +01:00
parent ff49a3bb61
commit d4e568c8bf
No known key found for this signature in database
GPG key ID: 63AB4E6262A96A87

View file

@ -653,7 +653,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
try
{
_logger.LogInformation(Name + ": Waiting on Task");
var exited = Task.WaitAll(new[] { task }, 2000);
var exited = task.Wait(2000);
if (exited)
{