File tree Expand file tree Collapse file tree
src/download/download-engine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -473,6 +473,7 @@ export default class DownloadEngineFile extends EventEmitter<DownloadEngineFileE
473473 this . options . comment = pushComment ( "cloned" , this . options . comment ) ;
474474 this . _progressStatus . downloadFlags ! . push ( DownloadFlags . Cloned ) ;
475475 this . _progress . part = this . file . parts . length - 1 ;
476+ this . _progress . chunks . fill ( ChunkStatus . COMPLETE ) ;
476477 }
477478
478479 public [ Symbol . dispose ] ( ) {
Original file line number Diff line number Diff line change @@ -38,9 +38,11 @@ export class DownloadEngineRemote extends EventEmitter<BaseDownloadEngineEvents>
3838 }
3939
4040 public emitRemoteProgress ( progress : FormattedStatus ) {
41+ const lastStatus = this . _latestStatus ?. downloadStatus ;
42+
4143 this . _latestStatus = progress ;
4244 this . emit1 ( "progress" , progress ) ;
43- const isStatusChanged = this . _latestStatus ?. downloadStatus !== progress . downloadStatus ;
45+ const isStatusChanged = lastStatus !== progress . downloadStatus ;
4446
4547 if ( ! isStatusChanged ) {
4648 return ;
You can’t perform that action at this time.
0 commit comments