http upload: do not crash on invalid slot responses
This commit is contained in:
parent
e2ac1db225
commit
64928d0ff1
|
@ -145,11 +145,11 @@ public class HttpUploadConnection implements Transferable {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!canceled) {
|
||||
new Thread(this::upload).start();
|
||||
}
|
||||
return;
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
//fall through
|
||||
}
|
||||
|
@ -229,7 +229,9 @@ public class HttpUploadConnection implements Transferable {
|
|||
if (connection != null) {
|
||||
connection.disconnect();
|
||||
}
|
||||
if (wakeLock.isHeld()) {
|
||||
wakeLock.release();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue