Core: корректное завершение работы
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
group = 'asys'
|
||||
version = '0.3.1-SNAPSHOT'
|
||||
version = '0.3.2-SNAPSHOT'
|
||||
|
||||
apply plugin: 'application'
|
||||
|
||||
|
||||
@@ -14,8 +14,11 @@ public class Main {
|
||||
private static final Logger logger = LoggerFactory.getLogger("Launcher");
|
||||
|
||||
public static void main(String[] args) {
|
||||
Core asysCore = new Core();
|
||||
final Core asysCore = new Core();
|
||||
asysCore.setConfiguration(getProperties());
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(asysCore::stop));
|
||||
|
||||
asysCore.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user