From 12e0d99a959d02a661995b6ce0946bcda7a0b4b8 Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Wed, 26 Jul 2017 15:44:05 +0700 Subject: [PATCH] Quick fix to stop an infinite loop --- ui/js/component/fileActions/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index 4eae24a6f..df624a345 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -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);