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,
|
outpoint,
|
||||||
full_status: true,
|
full_status: true,
|
||||||
}).then(([fileInfo]) => {
|
}).then(([fileInfo]) => {
|
||||||
if (!fileInfo || fileInfo.written_bytes === 0) {
|
if (!fileInfo) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fileInfo && fileInfo.written_bytes === 0) {
|
||||||
// download hasn't started yet
|
// download hasn't started yet
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
dispatch(doUpdateLoadStatus(uri, outpoint));
|
dispatch(doUpdateLoadStatus(uri, outpoint));
|
||||||
|
|
Loading…
Reference in a new issue