remove unnecessary async lambda

This commit is contained in:
zznty
2022-05-08 12:25:06 +07:00
parent 1afb126cb5
commit d05e979ede

View File

@@ -50,7 +50,7 @@ namespace Torch.Server.Views
var PercentChangeOnDownload = 100 / PluginsToDownload.Count;
foreach (PluginItem PluginItem in PluginsToDownload) {
if (!Task.Run(async () => await PluginQuery.Instance.DownloadPlugin(PluginItem.Id)).Result) {
if (!PluginQuery.Instance.DownloadPlugin(PluginItem.Id).Result) {
failedDownloads++;
DownloadProgress += PercentChangeOnDownload;
(sender as BackgroundWorker).ReportProgress(DownloadProgress);