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);
if (url == "")
return null;
var data =
wc.DownloadDataTaskAsync(url);
var data = await wc.DownloadDataTaskAsync(url).ConfigureAwait(false);
using (MemoryStream ms = new MemoryStream(data))
{
return (Bitmap)Image.FromStream(ms);