Fix hopefully the last race condition for tx_busy handling.

This commit is contained in:
NIIBE Yutaka 2018-12-01 23:28:19 +09:00
parent 7249775c17
commit fc36773c6a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-11-30 NIIBE Yutaka <gniibe@fsij.org>
* src/usb-ccid.c (ccid_thread): Fix another race condition.
2018-11-25 NIIBE Yutaka <gniibe@fsij.org>
* VERSION: 1.2.12.

View File

@ -1800,7 +1800,7 @@ ccid_thread (void *arg)
}
#ifdef ACKBTN_SUPPORT
if (ack_intr.ready)
if (c->tx_busy && ack_intr.ready)
{
ackbtn_disable ();
chopstx_intr_done (&ack_intr);