mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 12:36:07 -05:00
#1456 Resolves issue with shutdown when no sdrplay api is available. Version update to 0.6.0 alpha-2 (#1457)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -30,7 +30,7 @@ repositories {
|
|||||||
maven { url "https://jitpack.io" }
|
maven { url "https://jitpack.io" }
|
||||||
}
|
}
|
||||||
|
|
||||||
version = '0.6.0-alpha1'
|
version = '0.6.0-alpha2'
|
||||||
|
|
||||||
//Java 19 is required for this version of the Project Panama preview/incubator feature
|
//Java 19 is required for this version of the Project Panama preview/incubator feature
|
||||||
java {
|
java {
|
||||||
|
|||||||
@@ -560,6 +560,8 @@ public class SDRplay
|
|||||||
* Foreign Function support is implemented, but not sure. dls 1-Jan-2023
|
* Foreign Function support is implemented, but not sure. dls 1-Jan-2023
|
||||||
*/
|
*/
|
||||||
public Status close()
|
public Status close()
|
||||||
|
{
|
||||||
|
if(mSdrplayLibraryLoaded)
|
||||||
{
|
{
|
||||||
Status closeStatus;
|
Status closeStatus;
|
||||||
|
|
||||||
@@ -577,6 +579,11 @@ public class SDRplay
|
|||||||
mAvailable = false;
|
mAvailable = false;
|
||||||
return closeStatus;
|
return closeStatus;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return Status.API_UNAVAILABLE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identifies the API version.
|
* Identifies the API version.
|
||||||
|
|||||||
Reference in New Issue
Block a user