mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2025-01-11 14:07:47 +00:00
Fixed missed await.
This commit is contained in:
parent
80f58df929
commit
1ae1f2380a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user