From 0442a3a3c4cae592f6cbf89efd319443550dcbe8 Mon Sep 17 00:00:00 2001 From: Kyle Nanakdewa Date: Sat, 27 Mar 2021 15:28:36 -0400 Subject: [PATCH] revert async, PNGs weren't downloading properly --- library/SporeServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/SporeServer.cs b/library/SporeServer.cs index 24a8b7f..f4f3e17 100644 --- a/library/SporeServer.cs +++ b/library/SporeServer.cs @@ -139,7 +139,7 @@ public void downloadLargeAssetPng(long assetId, string fileName) using (var client = new WebClient()) { - client.DownloadFileAsync(uri, fileName); + client.DownloadFile(uri, fileName); } } @@ -157,7 +157,7 @@ public void downloadAssetPng(long assetId, string fileName) using (var client = new WebClient()) { - client.DownloadFileAsync(uri, fileName); + client.DownloadFile(uri, fileName); } }