aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuhas Suresh <suhas.suresh_1@nxp.com>2017-09-21 18:00:04 +0530
committerRohit Rangwani <rrangwan@codeaurora.org>2017-10-04 15:26:19 +0530
commit31abb952fa3b788a2da84d58940d7b7a9f6080fa (patch)
tree8f627f81839eecbf66c4b4b90310fb0381d8157d
parentd87ca87f996d76be920daad106aeb3073d6daf64 (diff)
downloadandroid_vendor_nxp_opensource_packages_apps_Nfc-31abb952fa3b788a2da84d58940d7b7a9f6080fa.tar.gz
android_vendor_nxp_opensource_packages_apps_Nfc-31abb952fa3b788a2da84d58940d7b7a9f6080fa.tar.bz2
android_vendor_nxp_opensource_packages_apps_Nfc-31abb952fa3b788a2da84d58940d7b7a9f6080fa.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. (cherry picked from commit ec0c3a7a68e97453aa478a373ad4a3c2eff6fc39) Change-Id: I361b3e80b46e9bc10fedb3b338e7c853a67240a6
-rw-r--r--nci/src/com/android/nfc/dhimpl/NativeNfcTag.java1
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 100644
--- 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");
}
}