#1364 Enhancements to resolve issue with tuner shutdown hang on application shutdown. (#1365)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2022-12-18 04:29:55 -05:00
committed by GitHub
parent dc327a2855
commit 4a68cd9407
2 changed files with 12 additions and 5 deletions

View File

@@ -643,9 +643,14 @@ public abstract class USBTunerController extends TunerController
default:
//Unexpected transfer error - need to reset the bulk transfer interface
transfer.buffer().rewind();
setErrorMessage("LibUsb Transfer Error - stopping device - status [" + transfer.status() + "] - " +
LibUsb.errorName(transfer.status()));
return;
//Only set an error if we're not shutting down
if(mAutoResubmitTransfers)
{
setErrorMessage("LibUsb Transfer Error - stopping device - status [" + transfer.status() + "] - " +
LibUsb.errorName(transfer.status()));
}
break;
}
}