emit download errors

This commit is contained in:
SpikeHD
2022-05-11 21:18:07 -07:00
parent 3ee8ee7061
commit 4b95c52b6c
7 changed files with 78 additions and 16 deletions

View File

@@ -33,9 +33,8 @@ export default class ProgressBar extends React.Component<IProps, IState> {
total: prog?.total || 0,
})
if (this.state.status === 'finished' /* || this.state.status === 'error' */) {
if (this.state.status === 'finished' || this.state.status === 'error') {
// Ensure progress is 100%
clearInterval(intv)
}
}, 500)