Loading src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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(); } } Loading Loading
src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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(); } } Loading