Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91a27178 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "OPP: Close InputStream properly" am: e42bd8ae

am: 847775a6

Change-Id: Id21b831ac1bb444690ab3fc9b755f5739d947d40
parents 54d0c35a 847775a6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -561,9 +561,13 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                    if (outputStream != null) {
                        outputStream.close();
                    }
                } catch (IOException e) {
                    Log.e(TAG, "Error when closing output stream after send");
                }

                // Close InputStream and remove SendFileInfo from map
                BluetoothOppUtility.closeSendFileInfo(mInfo.mUri);
                try {
                    if (!error) {
                        responseCode = putOperation.getResponseCode();
                        if (responseCode != -1) {