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

Commit 5691a076 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "OPP: Close InputStream properly" am: e42bd8ae am: 847775a6

am: 91a27178

Change-Id: Ifa6f401fec4f579efe5bd121c0d185f6dfb56691
parents 79eba220 91a27178
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) {