mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-13 14:48:04 -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);
|
signatureBodyPart.writeTo(out);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(K9.LOG_TAG, "Exception while writing message to crypto provider", 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();
|
}).start();
|
||||||
@ -215,6 +221,12 @@ public class MessageCryptoHelper {
|
|||||||
encryptionPayloadBody.writeTo(out);
|
encryptionPayloadBody.writeTo(out);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(K9.LOG_TAG, "Exception while writing message to crypto provider", 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();
|
}).start();
|
||||||
|
Loading…
Reference in New Issue
Block a user