aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-22 18:46:40 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-22 18:46:40 +0200
commit9a8e55acd16c10335f74eea5b7ad4e2a864e2ec4 (patch)
tree2387267b082c4eecf76dc37c761138af66cd6682 /src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java
parentaa5f775fc79ca7b1912c9d7fba759e7efb09fa2b (diff)
added download button for images not accepted automatically
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java')
-rw-r--r--src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java b/src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java
index c963136d..8326fa39 100644
--- a/src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java
+++ b/src/eu/siacs/conversations/xmpp/jingle/JingleInbandTransport.java
@@ -120,6 +120,7 @@ public class JingleInbandTransport extends JingleTransport {
int count = fileInputStream.read(buffer);
if (count==-1) {
file.setSha1Sum(CryptoHelper.bytesToHex(digest.digest()));
+ fileInputStream.close();
this.onFileTransmitted.onFileTransmitted(file);
} else {
this.digest.update(buffer);
@@ -155,6 +156,7 @@ public class JingleInbandTransport extends JingleTransport {
file.setSha1Sum(CryptoHelper.bytesToHex(digest.digest()));
Log.d("xmppService","file name: "+file.getAbsolutePath());
fileOutputStream.flush();
+ fileOutputStream.close();
this.onFileTransmitted.onFileTransmitted(file);
}
} catch (IOException e) {