Update v5.19

This commit is contained in:
sky 2020-03-08 16:33:40 +08:00
parent 1d66c4ed8f
commit b55906b355
3 changed files with 5 additions and 1 deletions

1
gradlew vendored
View File

@ -8,6 +8,7 @@
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do

1
gradlew.bat vendored
View File

@ -10,6 +10,7 @@ if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

View File

@ -12,7 +12,9 @@ public class TabooIpcClientImpl implements TabooIpcClient {
@Override
public synchronized boolean connect(TabooIpcConfig config) throws Exception {
if (available) throw new IllegalStateException();
if (available) {
throw new IllegalStateException();
}
long size = round(config.memorySize());
long blockSize = round(config.blockSize());
if (blockSize < 128 || size < (blockSize << 1) || size % blockSize != 0) return false;