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

Commit 847775a6 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "OPP: Close InputStream properly"

am: e42bd8ae

Change-Id: Ieccdb73e9c0b8dceda5277e7d2d995ba1f2d8fd4
parents 9d6f5208 e42bd8ae
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) {