diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-11 19:36:09 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-11 19:36:09 +0100 |
commit | 3f6923f706c1abc9ed2189fa7ef80a3c173d00cb (patch) | |
tree | deb6811095861ef592d33b11a1c1f25b1c3ee12a /src | |
parent | 41c1665f67b5ee12e864f9bab8daae526cb42f11 (diff) |
http upload: do not crash on invalid slot responses
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/http/HttpUploadConnection.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java index e2dd6930c..658230e3f 100644 --- a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java +++ b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java @@ -145,11 +145,11 @@ public class HttpUploadConnection implements Transferable { } } } + if (!canceled) { + new Thread(this::upload).start(); + } + return; } - if (!canceled) { - new Thread(this::upload).start(); - } - return; } catch (MalformedURLException e) { //fall through } |