commit | 476ee8a64404b7ee042ba1a70400bcb1dd5ace10 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Thu Apr 25 17:19:40 2013 -0700 |
committer | Martijn Coenen <maco@google.com> | Thu Apr 25 17:29:10 2013 -0700 |
tree | 0b18943889d962430922345dcac0afadde15f4fe | |
parent | 7a499e775021bafefbe890d079e2a43f4a54482c [diff] |
Fix more race conditions. In the old NXP JNI: - We can be in the process of discovering a tag/p2p target when we try to configure discovery. In case ConfigureDiscovery returns BUSY, don't immediately call abort(), but retry a few times. - Completely disable Tag/P2P discovery *before* opening a pipe to the SMX. This avoids nasty races with opening the SMX while a P2P/Tag device enters the field. Bug: 8552749 Change-Id: I433a40c918373c661abda3bc40dd36db7b233245