From e5fd7133a82c1bd935ed62b874073cd135f98e75 Mon Sep 17 00:00:00 2001 From: Pradeep Panigrahi Date: Thu, 27 Feb 2014 16:35:31 +0530 Subject: Bluetooth: MAP: Close output stream before closing client session Body field is not added on the put request if we close the client session before output stream. Hence add change to close output stream before client session. CRs-fixed: 623805 Change-Id: I73bbf06ca9bcceb465e196f58d8d4dda19005861 --- src/com/android/bluetooth/map/BluetoothMnsObexClient.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/com/android/bluetooth/map/BluetoothMnsObexClient.java b/src/com/android/bluetooth/map/BluetoothMnsObexClient.java index 1014347e3..ff7440fc9 100644 --- a/src/com/android/bluetooth/map/BluetoothMnsObexClient.java +++ b/src/com/android/bluetooth/map/BluetoothMnsObexClient.java @@ -392,10 +392,6 @@ public class BluetoothMnsObexClient { if (bytesWritten == eventBytes.length) { Log.i(TAG, "SendEvent finished send length" + eventBytes.length); - if (putOperation != null) { - if (V) Log.v(TAG, "Closing putOperation"); - putOperation.close(); - } if (outputStream != null) { if (V) Log.v(TAG, "Closing outputStream"); outputStream.close(); -- cgit v1.2.3