summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2020-09-30 23:34:07 +0200
committerBenjamin Berg <bberg@redhat.com>2020-10-01 00:02:08 +0200
commite3ce22315687529768dc1a3b407f4bcca956bd09 (patch)
tree643791dfa27e98cd04342e468d1d7d0e0e2441b9 /README.md
parent9ce9a6c99be107bc11a5fa2bd28a58e54fc27958 (diff)
downloadgusb-e3ce22315687529768dc1a3b407f4bcca956bd09.tar.gz
device: Fix cancellation if cancellable is already cancelled
libusb can only handle cancellation if the transfer is already in-flight. However, g_cancellable_connect will immediately call the callback and then libusb_cancel_transfer when the cancellable is already cancelled at the time the transfer is submitted. Move the cancellation registration to after transfer submission to avoid ordering issues. Also avoid even submitting the transfer if the cancellable is already cancelled to begin with.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions