mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Fully implements application shutdown procedure that is invoked when the
user closes the the main gui window or invokes exit from the file menu.
This commit is contained in:
@@ -180,6 +180,24 @@ public class AirspyTunerController extends USBTunerController
|
||||
USB_TRANSFER_BUFFER_SIZE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose()
|
||||
{
|
||||
if(mDeviceHandle != null)
|
||||
{
|
||||
mLog.info("Releasing Airspy Tuner - " + getDeviceInfo().getSerialNumber());
|
||||
try
|
||||
{
|
||||
LibUsb.close(mDeviceHandle);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
mLog.error("error while closing device handle", e);
|
||||
}
|
||||
|
||||
mDeviceHandle = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected USBTransferProcessor getUSBTransferProcessor()
|
||||
|
||||
Reference in New Issue
Block a user