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:
Denny
2018-07-14 14:44:03 -04:00
parent 8c237be682
commit 20a8f2bb3c
13 changed files with 195 additions and 35 deletions

View File

@@ -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()