Skip to content

Commit 1ae1f23

Browse files
committed
Fixed missed await.
1 parent 80f58df commit 1ae1f23

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

SpotifyAPI/Local/Models/Track.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ public async Task<Bitmap> GetAlbumArtAsync(AlbumArtSize size)
103103
string url = GetAlbumArtUrl(size);
104104
if (url == "")
105105
return null;
106-
var data =
107-
108-
wc.DownloadDataTaskAsync(url);
106+
var data = await wc.DownloadDataTaskAsync(url).ConfigureAwait(false);
109107
using (MemoryStream ms = new MemoryStream(data))
110108
{
111109
return (Bitmap)Image.FromStream(ms);

0 commit comments

Comments
 (0)