Fixed sometimes false returned from SubscribeDownloadAsync

This commit is contained in:
kamyker 2019-12-06 01:43:27 +01:00
parent 32fbf63644
commit e9d130572a

View File

@ -278,11 +278,11 @@ namespace Steamworks.Ugc
while ( true )
{
if ( ct.IsCancellationRequested )
return false;
break;
progress?.Invoke( DownloadAmount );
if ( !IsDownloading )
if ( !IsDownloading && State.HasFlag( ItemState.Installed ) )
break;
await Task.Delay( milisecondsUpdateDelay );