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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user