Replace Task.WaitAll with Task.Wait
This commit is contained in:
parent
ff49a3bb61
commit
d4e568c8bf
|
@ -653,7 +653,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_logger.LogInformation(Name + ": Waiting on Task");
|
_logger.LogInformation(Name + ": Waiting on Task");
|
||||||
var exited = Task.WaitAll(new[] { task }, 2000);
|
var exited = task.Wait(2000);
|
||||||
|
|
||||||
if (exited)
|
if (exited)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user