aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu/siacs/conversations')
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
index 56f1ed5bf..2bd22fd1b 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
@@ -114,6 +114,7 @@ public class HttpUploadConnection implements Transferable {
try {
pair = AbstractConnectionManager.createInputStream(file, true);
} catch (FileNotFoundException e) {
+ Log.d(Config.LOGTAG,account.getJid().toBareJid()+": could not find file to upload - "+e.getMessage());
fail();
return;
}
@@ -133,15 +134,14 @@ public class HttpUploadConnection implements Transferable {
if (!canceled) {
new Thread(new FileUploader()).start();
}
+ return;
} catch (MalformedURLException e) {
- fail();
+ //fall through
}
- } else {
- fail();
}
- } else {
- fail();
}
+ Log.d(Config.LOGTAG,account.getJid().toString()+": invalid response to slot request "+packet);
+ fail();
}
});
message.setTransferable(this);
@@ -207,6 +207,7 @@ public class HttpUploadConnection implements Transferable {
@Override
public void error(int errorCode, Message object) {
+ Log.d(Config.LOGTAG,"pgp encryption failed");
fail();
}