Python 3 asyncio selectors fix #344

Merged
akinwale merged 5 commits from python3-selector-fix into master 2018-10-28 19:12:40 +01:00
Showing only changes of commit 5351226d44 - Show all commits

View file

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