potentially fix staticfileserver crashes
This commit is contained in:
@@ -147,6 +147,8 @@ public class RequestQueueService : IHostedService
|
|||||||
MaxDegreeOfParallelism = 10,
|
MaxDegreeOfParallelism = 10,
|
||||||
},
|
},
|
||||||
async (i) =>
|
async (i) =>
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (!_queue.Any()) return;
|
if (!_queue.Any()) return;
|
||||||
|
|
||||||
@@ -175,6 +177,11 @@ public class RequestQueueService : IHostedService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogWarning(ex, "Error during inside queue processing");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user