mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves issue with RTL2832 tuner where we attempt to cancel transfers
that have not yet been initialized.
This commit is contained in:
@@ -1525,7 +1525,14 @@ public abstract class RTL2832TunerController extends TunerController
|
||||
{
|
||||
for( Transfer transfer: mTransfers )
|
||||
{
|
||||
LibUsb.cancelTransfer( transfer );
|
||||
try
|
||||
{
|
||||
LibUsb.cancelTransfer( transfer );
|
||||
}
|
||||
catch( IllegalStateException ise )
|
||||
{
|
||||
//Do nothing, the transfer pointer wasn't initialized
|
||||
}
|
||||
}
|
||||
|
||||
ByteBuffer completed = ByteBuffer.allocateDirect( 4 );
|
||||
|
||||
Reference in New Issue
Block a user