mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 13:31:17 +03:00
Merge pull request #435 from kamyker/getasync-disposed
Item.GetAsync ResultPage disposed
This commit is contained in:
commit
5c95620ee6
@ -228,9 +228,12 @@ namespace Steamworks.Ugc
|
|||||||
.GetPageAsync( 1 );
|
.GetPageAsync( 1 );
|
||||||
|
|
||||||
if ( !file.HasValue ) return null;
|
if ( !file.HasValue ) return null;
|
||||||
if ( file.Value.ResultCount == 0 ) return null;
|
using ( file.Value )
|
||||||
|
{
|
||||||
|
if ( file.Value.ResultCount == 0 ) return null;
|
||||||
|
|
||||||
return file.Value.Entries.First();
|
return file.Value.Entries.First();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static Item From( SteamUGCDetails_t details )
|
internal static Item From( SteamUGCDetails_t details )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user