mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Resolves issue with RTL2832 Tuner cancelling transfer buffers that
haven't yet been initialized. This occurs when there is a channel allocated from the tuner that is the first/only listener and then is immediately released. Some of the buffers are in motion and the others simply haven't yet been initialized.
This commit is contained in:
@@ -1527,7 +1527,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