diff options
author | Suhas Suresh <suhas.suresh_1@nxp.com> | 2017-09-21 18:00:04 +0530 |
---|---|---|
committer | nxpandroid <srikrishna.pramoda@nxp.com> | 2017-09-26 12:00:33 +0530 |
commit | ec0c3a7a68e97453aa478a373ad4a3c2eff6fc39 (patch) | |
tree | 5bd776b0852c9a541bc946d58fc3019c02eb97fe | |
parent | 7f44d4d82404955e7d6bce3c5a4ff86436785cfb (diff) | |
download | android_vendor_nxp_opensource_packages_apps_Nfc-ec0c3a7a68e97453aa478a373ad4a3c2eff6fc39.tar.gz android_vendor_nxp_opensource_packages_apps_Nfc-ec0c3a7a68e97453aa478a373ad4a3c2eff6fc39.tar.bz2 android_vendor_nxp_opensource_packages_apps_Nfc-ec0c3a7a68e97453aa478a373ad4a3c2eff6fc39.zip |
Fix for NFC service died for NFC on/off stabilty with tag in proximity
disconnect() is called inside the thread whenever tag is removed
from proximity which waits for thread join.
Since join is called inside same thread, it is infinitely waiting to join.
Removed calling disconnect inside the presence check thread.
-rwxr-xr-x | nci/src/com/android/nfc/dhimpl/NativeNfcTag.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/nci/src/com/android/nfc/dhimpl/NativeNfcTag.java b/nci/src/com/android/nfc/dhimpl/NativeNfcTag.java index 1febec9f..610a7394 100755 --- a/nci/src/com/android/nfc/dhimpl/NativeNfcTag.java +++ b/nci/src/com/android/nfc/dhimpl/NativeNfcTag.java @@ -160,7 +160,6 @@ public class NativeNfcTag implements TagEndpoint { if (tagDisconnectedCallback != null) { tagDisconnectedCallback.onTagDisconnected(mConnectedHandle); } - disconnect(); if (DBG) Log.d(TAG, "Stopping background presence check"); } } |