If the output stream is still open after finishing the sending of
a file, a CONTINUE response code is received instead of an OK code.
Bug:
29583227
Change-Id: I1b2515e8fe5eec208bbbe1df17f96cc20c5ea884
handleSendException(e.toString());
} finally {
try {
+ if (outputStream != null) {
+ outputStream.close();
+ }
+
// Close InputStream and remove SendFileInfo from map
BluetoothOppUtility.closeSendFileInfo(mInfo.mUri);
if (!error) {
if (inputStream != null) {
inputStream.close();
}
- if (outputStream != null) {
- outputStream.close();
- }
if (putOperation != null) {
putOperation.close();
}