libhackrf: Fix early exit of transfer thread in case of syscal interruption
libusb can return LIBUSB_ERROR_INTERRUPTED and it's not really an error, just a sign some syscall got interrupted by something. Don't abort on that. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
@ -894,7 +894,7 @@ static void* transfer_threadproc(void* arg)
|
||||
while( (device->streaming) && (do_exit == false) )
|
||||
{
|
||||
error = libusb_handle_events_timeout(g_libusb_context, &timeout);
|
||||
if( error != 0 )
|
||||
if( (error != 0) && (error != LIBUSB_ERROR_INTERRUPTED) )
|
||||
{
|
||||
device->streaming = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user