Core: корректное завершение работы
This commit is contained in:
@@ -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