Merge pull request #435 from kamyker/getasync-disposed

Item.GetAsync ResultPage disposed
This commit is contained in:
Garry Newman 2020-05-21 09:53:00 +01:00 committed by GitHub
commit 5c95620ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,10 +228,13 @@ public float DownloadAmount
.GetPageAsync( 1 );
if ( !file.HasValue ) return null;
using ( file.Value )
{
if ( file.Value.ResultCount == 0 ) return null;
return file.Value.Entries.First();
}
}
internal static Item From( SteamUGCDetails_t details )
{