LaunchServer stopped entry fixed.

This commit is contained in:
zaxar163 2018-12-12 15:56:00 +03:00
parent eca11301b3
commit 9f09eb405d
No known key found for this signature in database
GPG key ID: E3B309DD3852DE06

View file

@ -258,7 +258,8 @@ private PostBuildTransformConf(BlockConfigEntry block, Path coredir) {
}
}
public static void main(String... args) throws Throwable {
@SuppressWarnings("resource")
public static void main(String... args) throws Throwable {
JVMHelper.checkStackTrace(LaunchServer.class);
JVMHelper.verifySystemProperties(LaunchServer.class, true);
LogHelper.addOutput(IOHelper.WORKING_DIR.resolve("LaunchServer.log"));
@ -268,9 +269,7 @@ public static void main(String... args) throws Throwable {
// Start LaunchServer
Instant start = Instant.now();
try {
try (LaunchServer lsrv = new LaunchServer(IOHelper.WORKING_DIR)) {
lsrv.run();
}
new LaunchServer(IOHelper.WORKING_DIR).run();
} catch (Throwable exc) {
LogHelper.error(exc);
return;