Improve startup speed

This commit is contained in:
SwallowGG
2023-12-13 20:08:16 +08:00
parent 8b0cbb4ddc
commit 7399c7f567
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ public class SystemController {
String clientVersion = System.getProperty("client.version");
String version = ConfigUtils.getLatestLocalVersion();
log.error("clientVersion:{},version:{}", clientVersion, version);
if (!StringUtils.equals(clientVersion, version)) {
if (!StringUtils.equals(clientVersion, version) && !StringUtils.isEmpty(clientVersion)) {
stop();
return null;
} else {
@ -146,7 +146,7 @@ public class SystemController {
// String version = ConfigUtils.getLatestLocalVersion();
// log.error("clientVersion:{},version:{}", clientVersion, version);
// if (!StringUtils.equals(clientVersion, version)) {
stop();
stop();
//}
}
return DataResult.of("ok");