auto restart system

master
Alex 2021-12-28 00:06:40 +01:00
parent 1365316d2a
commit f3cc29d7f4
1 changed files with 3 additions and 3 deletions

View File

@ -74,13 +74,13 @@ public class SocketClientMessageListener implements KraSocketClientEventInterfac
.getServiceTask("Lobby"); .getServiceTask("Lobby");
if (serviceTask != null) { if (serviceTask != null) {
System.out.println("serviceTask " + serviceTask.getName());
playersAutoRestartServerSystem.put(serviceTask.getName(), null);
ServiceInfoSnapshot serviceInfoSnapshot = ServiceConfiguration.builder(serviceTask) ServiceInfoSnapshot serviceInfoSnapshot = ServiceConfiguration.builder(serviceTask)
.build().createNewService(); .build().createNewService();
if (serviceInfoSnapshot != null) { if (serviceInfoSnapshot != null) {
System.out.println("serviceTask " + serviceInfoSnapshot.getName());
playersAutoRestartServerSystem.put(serviceInfoSnapshot.getName(), null);
serviceInfoSnapshot.provider().start(); serviceInfoSnapshot.provider().start();
} }
} }