aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/xmpp/jingle
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-13 22:53:03 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-13 22:53:03 +0200
commitc449c5dcb84f0b4f2435103ceb4909ecac52e810 (patch)
treea4b110b5df8c4e6d951e2f95eb42910d96bf6e40 /src/main/java/de/pixart/messenger/xmpp/jingle
parent04db5052ccee3cba54c52d64e3ec199d78b675ad (diff)
add more logging to http download connection and reset file params after setting expected size
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp/jingle')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java
index 2f8d66306..3aaf002c7 100644
--- a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java
@@ -464,6 +464,7 @@ public class JingleConnection implements Transferable {
}
this.mFileOutputStream = AbstractConnectionManager.createOutputStream(this.file, message.getEncryption() == Message.ENCRYPTION_AXOLOTL);
this.file.setExpectedSize(size);
+ message.resetFileParams();
Log.d(Config.LOGTAG, "receiving file: expecting size of " + this.file.getExpectedSize());
} else {
this.sendCancel();
@@ -508,6 +509,7 @@ public class JingleConnection implements Transferable {
cancel();
return;
}
+ message.resetFileParams();
this.mFileInputStream = pair.first;
content.setTransportId(this.transportId);
content.socks5transport().setChildren(getCandidatesAsElements());