diff options
author | Benjamin Berg <bberg@redhat.com> | 2020-09-30 23:34:07 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2020-10-01 00:02:08 +0200 |
commit | e3ce22315687529768dc1a3b407f4bcca956bd09 (patch) | |
tree | 643791dfa27e98cd04342e468d1d7d0e0e2441b9 /meson.build | |
parent | 9ce9a6c99be107bc11a5fa2bd28a58e54fc27958 (diff) | |
download | gusb-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 'meson.build')
0 files changed, 0 insertions, 0 deletions