Fix another race condition around ack button and usb communication.

This commit is contained in:
NIIBE Yutaka
2018-11-21 14:56:56 +09:00
parent 8f44f5d3c6
commit 980cff0a2f
2 changed files with 9 additions and 2 deletions

View File

@@ -1766,7 +1766,7 @@ ccid_thread (void *arg)
{
eventmask_t m;
if (bDeviceState == USB_DEVICE_STATE_CONFIGURED)
if (!c->tx_busy && bDeviceState == USB_DEVICE_STATE_CONFIGURED)
timeout_p = &timeout;
else
timeout_p = NULL;