Quick fix to stop an infinite loop

This commit is contained in:
6ea86b96 2017-07-26 15:44:05 +07:00
parent a2b8bb4828
commit 12e0d99a95
No known key found for this signature in database
GPG key ID: B282D183E4931E8F

View file

@ -31,7 +31,8 @@ class FileActions extends React.PureComponent {
if (
!downloading &&
fileInfo &&
!fileInfo.written_bytes &&
!fileInfo.completed &&
fileInfo.written_bytes !== false &&
fileInfo.written_bytes < fileInfo.total_bytes
) {
restartDownload(uri, fileInfo.outpoint);