mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
close piped streams after use
This commit is contained in:
parent
0a07250417
commit
3077e6a2d7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user