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

Commit d4362de2 authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Close output stream before getting response am: e026ad50

am: 12d518f5

Change-Id: I724d5e6386af9606fb437ad9a5e28a9ae3fec8f9
parents c0b22888 12d518f5
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -496,6 +496,10 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                handleSendException(e.toString());
                handleSendException(e.toString());
            } finally {
            } finally {
                try {
                try {
                    if (outputStream != null) {
                      outputStream.close();
                    }

                    // Close InputStream and remove SendFileInfo from map
                    // Close InputStream and remove SendFileInfo from map
                    BluetoothOppUtility.closeSendFileInfo(mInfo.mUri);
                    BluetoothOppUtility.closeSendFileInfo(mInfo.mUri);
                    if (!error) {
                    if (!error) {
@@ -524,9 +528,6 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                    if (inputStream != null) {
                    if (inputStream != null) {
                        inputStream.close();
                        inputStream.close();
                    }
                    }
                    if (outputStream != null) {
                        outputStream.close();
                    }
                    if (putOperation != null) {
                    if (putOperation != null) {
                        putOperation.close();
                        putOperation.close();
                    }
                    }