mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-21 13:05:43 -05:00
Resolves issue with RTL2832 tuner where we attempt to cancel transfers
that have not yet been initialized.
This commit is contained in:
@@ -1524,9 +1524,16 @@ public abstract class RTL2832TunerController extends TunerController
|
||||
private void cancel()
|
||||
{
|
||||
for( Transfer transfer: mTransfers )
|
||||
{
|
||||
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