Python 3 asyncio selectors fix #344
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ export function doUpdateLoadStatus(uri, outpoint) {
|
|||
outpoint,
|
||||
full_status: true,
|
||||
}).then(([fileInfo]) => {
|
||||
if (!fileInfo || fileInfo.written_bytes === 0) {
|
||||
if (!fileInfo) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (fileInfo && fileInfo.written_bytes === 0) {
|
||||
// download hasn't started yet
|
||||
setTimeout(() => {
|
||||
dispatch(doUpdateLoadStatus(uri, outpoint));
|
||||
|
|
Loading…
Reference in a new issue