Merge pull request #388 from lbryio/file-actions-fix

Quick fix to stop an infinite loop
This commit is contained in:
Jeremy Kauffman 2017-07-26 07:36:57 -04:00 committed by GitHub
commit c972230df4

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