From 1ae1f2380a77b75e35dbd226f4b09f917d1119d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Hou=C5=A1ka?= Date: Thu, 8 Sep 2016 12:24:16 +0200 Subject: [PATCH] Fixed missed await. --- SpotifyAPI/Local/Models/Track.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SpotifyAPI/Local/Models/Track.cs b/SpotifyAPI/Local/Models/Track.cs index c439614a..36f45f84 100755 --- a/SpotifyAPI/Local/Models/Track.cs +++ b/SpotifyAPI/Local/Models/Track.cs @@ -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);