mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Merge pull request #335 from kamyker/subdl-fix
Fixed sometimes false returned from SubscribeDownloadAsync
This commit is contained in:
commit
127de84c8c
@ -278,11 +278,11 @@ public async Task<bool> SubscribeDownloadAsync( Action<float> progress = null, C
|
|||||||
while ( true )
|
while ( true )
|
||||||
{
|
{
|
||||||
if ( ct.IsCancellationRequested )
|
if ( ct.IsCancellationRequested )
|
||||||
return false;
|
break;
|
||||||
|
|
||||||
progress?.Invoke( DownloadAmount );
|
progress?.Invoke( DownloadAmount );
|
||||||
|
|
||||||
if ( !IsDownloading )
|
if ( !IsDownloading && State.HasFlag( ItemState.Installed ) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
await Task.Delay( milisecondsUpdateDelay );
|
await Task.Delay( milisecondsUpdateDelay );
|
||||||
|
Loading…
Reference in New Issue
Block a user