Quick fix to stop an infinite loop #388

Merged
6ea86b96 merged 1 commit from file-actions-fix into master 2017-07-26 13:36:58 +02:00

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);