Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osx: handle run loop firing report_callback() multiple times
One invocation of CFRunLoopRunInMode() may fire the report callback multiple times. When that happens, the next call to fido_hid_read() may block for the full timeout if the authenticator has already sent its response. The pipe is already configured to be non-blocking. This means we can attempt to read from the pipe on entering fido_hid_read() and only execute the run loop if there is no data already available.
- Loading branch information