Browse Source

Replace Task.WaitAll with Task.Wait

Bond_009 4 years ago
parent
commit
d4e568c8bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs

+ 1 - 1
Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs

@@ -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)
                         {