mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-15 03:38:56 +01:00
Cancel flush transfer if shutting down.
This commit is contained in:
committed by
Michael Ossmann
parent
c089bb0b88
commit
770416f122
@@ -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->flush = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user