Skip to content

Commit 0442a3a

Browse files
committed
revert async, PNGs weren't downloading properly
1 parent 85a13b0 commit 0442a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/SporeServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void downloadLargeAssetPng(long assetId, string fileName)
139139

140140
using (var client = new WebClient())
141141
{
142-
client.DownloadFileAsync(uri, fileName);
142+
client.DownloadFile(uri, fileName);
143143
}
144144
}
145145

@@ -157,7 +157,7 @@ public void downloadAssetPng(long assetId, string fileName)
157157

158158
using (var client = new WebClient())
159159
{
160-
client.DownloadFileAsync(uri, fileName);
160+
client.DownloadFile(uri, fileName);
161161
}
162162
}
163163

0 commit comments

Comments
 (0)