diff options
author | Smriti Gupta <smritig@codeaurora.org> | 2013-09-13 13:12:13 +0530 |
---|---|---|
committer | Smriti Gupta <smritig@codeaurora.org> | 2013-09-13 14:29:00 +0530 |
commit | 2a14eb455a95cce62d5ce36e1698badcefe9ba66 (patch) | |
tree | 12cf4a41a263b47f43f1813b0a98dfe7e793f6b9 /src/org/codeaurora/bluetooth/ftp | |
parent | bdb04bd790a4a29345fcf8bee373107da68f8309 (diff) | |
download | android_packages_apps_BluetoothExt-2a14eb455a95cce62d5ce36e1698badcefe9ba66.tar.gz android_packages_apps_BluetoothExt-2a14eb455a95cce62d5ce36e1698badcefe9ba66.tar.bz2 android_packages_apps_BluetoothExt-2a14eb455a95cce62d5ce36e1698badcefe9ba66.zip |
Bluedroid: Fix SDP registration issue for FTP
This change removes RfcommServer socket close to avoid
SDP re-registration for every FTP connection request
for fixing SDP registration issue for frequent FTP connections.
Change-Id: I605c468ee42a56dc6488d1a4baed8b0bf9623e25
CRs-fixed: 536221
Diffstat (limited to 'src/org/codeaurora/bluetooth/ftp')
-rw-r--r-- | src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java b/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java index 2f9c2c9..dc98874 100644 --- a/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java +++ b/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java @@ -753,12 +753,9 @@ public class BluetoothFtpService extends Service { break; case MSG_INTERNAL_OBEX_RFCOMM_SESSION_UP: if (VERBOSE) Log.v(TAG,"MSG_INTERNAL_OBEX_RFCOMM_SESSION_UP"); - try { - closeRfcommSocket(true, false); - mRfcommServerSocket = null; - } catch (IOException ex) { - Log.e(TAG, "CloseSocket error: " + ex); - } + /*Avoid RfcommServer socket close to avoid SDP + *re-registration for every FTP connection request + */ break; case MSG_OBEX_AUTH_CHALL: createFtpNotification(AUTH_CHALL_ACTION); |