Cancel flush transfer if shutting down.

This commit is contained in:
Martin Ling
2022-09-22 12:41:54 +01:00
committed by Michael Ossmann
parent c089bb0b88
commit 770416f122

View File

@ -239,6 +239,9 @@ static int cancel_transfers(hackrf_device* device)
} }
} }
if (device->flush_transfer != NULL)
libusb_cancel_transfer(device->flush_transfer);
device->transfers_setup = false; device->transfers_setup = false;
device->flush = false; device->flush = false;