Fixed missed await.

This commit is contained in:
Petr Houška 2016-09-08 12:24:16 +02:00
parent 80f58df929
commit 1ae1f2380a

View File

@ -103,9 +103,7 @@ namespace SpotifyAPI.Local.Models
string url = GetAlbumArtUrl(size); string url = GetAlbumArtUrl(size);
if (url == "") if (url == "")
return null; return null;
var data = var data = await wc.DownloadDataTaskAsync(url).ConfigureAwait(false);
wc.DownloadDataTaskAsync(url);
using (MemoryStream ms = new MemoryStream(data)) using (MemoryStream ms = new MemoryStream(data))
{ {
return (Bitmap)Image.FromStream(ms); return (Bitmap)Image.FromStream(ms);