Uncaught exception when link breaks during connect().
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfcpy |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In the phase when the LLCP client waits for CC or DM PDU, broken link causes closing of sockets. This leads to notifying receiver thread in class TransmissionCon
File "./dbus_
nfc.
File ".../nfcpy/
return _llc.connect(sid, dest)
File ".../nfcpy/
socket.
File ".../nfcpy/
pdu = super(DataLinkC
File ".../nfcpy/
return self.recv_
IndexError: pop from an empty deque
Related branches
Changed in nfcpy: | |
status: | New → Triaged |
importance: | Undecided → Medium |
As a workaround you can use something like following code:
try: llcp.connect( socket, service_name)
nfc.
except IndexError:
# regard this case as if connection has been refused