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
2 changed files with 5 additions and 11 deletions
Showing only changes of commit 761f3c617b - Show all commits

View file

@ -29,11 +29,11 @@ export function doUpdateLoadStatus(uri, outpoint) {
outpoint,
full_status: true,
}).then(([fileInfo]) => {
if (!fileInfo) {
return;
}
if (!fileInfo || fileInfo.written_bytes === 0) {
// if the outpoint isn't in the state, then it was probably canceled, so stop checking the load status
const { downloadingByOutpoint = {} } = state.fileInfo;
if (!downloadingByOutpoint[outpoint]) return;
if (fileInfo && fileInfo.written_bytes === 0) {
// download hasn't started yet
setTimeout(() => {
dispatch(doUpdateLoadStatus(uri, outpoint));
@ -137,7 +137,7 @@ export function doStopDownloadingFile(uri, fileInfo) {
Lbry.file_set_status(params).then(() => {
dispatch({
type: ACTIONS.DOWNLOADING_CANCELED,
data: {}
data: { uri, outpoint: fileInfo.outpoint }
});
// Should also delete the file after the user stops downloading

View file

@ -1,9 +1,3 @@
// This depends on the openjdk-8-jdk package (Ubuntu) being installed
compileJava {
options.fork = true
options.forkOptions.executable = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {