summaryrefslogtreecommitdiff
path: root/src/phFriNfc_LlcpTransport.c
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2013-03-05 17:17:20 -0800
committerMartijn Coenen <maco@google.com>2013-03-05 17:32:58 -0800
commit837efc3194a03beaaa32b370c63a9270ed9664d8 (patch)
tree884477a467dc78a5e1658b7a437a35c98c3e324e /src/phFriNfc_LlcpTransport.c
parent7c4b4fadb66959c50c170182847886e83393eebf (diff)
downloadlibnfc-nxp-837efc3194a03beaaa32b370c63a9270ed9664d8.tar.gz
Fix wrong callback being cleared.
When a call to disconnect() failed, the connect() callback was cleared, not the disconnect() one. This would cause deadlocks, where JNI threads were forever blocked on doConnect(). Bug: 7324226 Change-Id: I784c8d700c87d643315f2417610ca75ef8f9aa7c
Diffstat (limited to 'src/phFriNfc_LlcpTransport.c')
-rw-r--r--src/phFriNfc_LlcpTransport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phFriNfc_LlcpTransport.c b/src/phFriNfc_LlcpTransport.c
index b3aee54..447eae6 100644
--- a/src/phFriNfc_LlcpTransport.c
+++ b/src/phFriNfc_LlcpTransport.c
@@ -687,7 +687,7 @@ NFCSTATUS phFriNfc_LlcpTransport_Reset (phFriNfc_LlcpTransport_t *pLlcpTran
pLlcpTransport->pSocketTable[i].pAcceptContext = NULL;
pLlcpTransport->pSocketTable[i].pRejectContext = NULL;
pLlcpTransport->pSocketTable[i].pConnectContext = NULL;
- pLlcpTransport->pSocketTable[i].pDisonnectContext = NULL;
+ pLlcpTransport->pSocketTable[i].pDisconnectContext = NULL;
pLlcpTransport->pSocketTable[i].pSendContext = NULL;
pLlcpTransport->pSocketTable[i].pRecvContext = NULL;
pLlcpTransport->pSocketTable[i].pSocketErrCb = NULL;