1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-04 16:45:09 -05:00

close piped streams after use

This commit is contained in:
Vincent Breitmoser 2015-01-29 20:24:59 +01:00
parent 0a07250417
commit 3077e6a2d7

View File

@ -194,6 +194,12 @@ public class MessageCryptoHelper {
signatureBodyPart.writeTo(out);
} catch (Exception e) {
Log.e(K9.LOG_TAG, "Exception while writing message to crypto provider", e);
} finally {
try {
out.close();
} catch (IOException e) {
// don't care
}
}
}
}).start();
@ -215,6 +221,12 @@ public class MessageCryptoHelper {
encryptionPayloadBody.writeTo(out);
} catch (Exception e) {
Log.e(K9.LOG_TAG, "Exception while writing message to crypto provider", e);
} finally {
try {
out.close();
} catch (IOException e) {
// don't care
}
}
}
}).start();