aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/http/HttpUploadConnection.java')
-rw-r--r--src/main/java/de/pixart/messenger/http/HttpUploadConnection.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
index 04d56626d..f43a94d73 100644
--- a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
+++ b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java
@@ -134,8 +134,10 @@ public class HttpUploadConnection implements Transferable {
@Override
public void success(SlotRequester.Slot slot) {
if (!cancelled) {
- HttpUploadConnection.this.slot = slot;
- new Thread(HttpUploadConnection.this::upload).start();
+ mXmppConnectionService.mUploadExecutor.execute(() -> {
+ HttpUploadConnection.this.slot = slot;
+ HttpUploadConnection.this.upload();
+ });
}
}