Skip to content

Commit 345c2a3

Browse files
authored
Merge pull request #10 from cryptlex/muneeb/fix/hasFloatingLicense
fix: add LF_FAIL switch case
2 parents ac11888 + 022fd92 commit 345c2a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/cryptlex/lexfloatclient/LexFloatClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static String GetHostLicenseMetadata(String key) throws LexFloatClientExc
245245
}
246246
throw new LexFloatClientException(status);
247247
}
248-
248+
249249
/**
250250
* Gets the license meter attribute allowed uses and total uses associated
251251
* with the LexFloatServer license.
@@ -360,6 +360,8 @@ public static boolean HasFloatingLicense() throws LexFloatClientException {
360360
return true;
361361
case LexFloatClientException.LF_E_NO_LICENSE:
362362
return false;
363+
case LexFloatClientException.LF_FAIL:
364+
return false;
363365
default:
364366
throw new LexFloatClientException(status);
365367
}

0 commit comments

Comments
 (0)