This commit is contained in:
2024-10-05 16:30:38 +02:00
parent b12a9e859d
commit cf26bdcc74
2 changed files with 2 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ public class NetworkServer extends DefaultMethodsOverrider {
if (logger == null) System.err.println("Restart exception: " + sleepThreadException.getMessage()); if (logger == null) System.err.println("Restart exception: " + sleepThreadException.getMessage());
else logger.exception("Restart exception", sleepThreadException); else logger.exception("Restart exception", sleepThreadException);
} }
//
currentAttempts++; currentAttempts++;
if (currentAttempts <= maxRestartAttempts || maxRestartAttempts < 0) return start(); if (currentAttempts <= maxRestartAttempts || maxRestartAttempts < 0) return start();
} }

View File

@@ -26,7 +26,7 @@ public class S_IncomingConnectionEvent extends CancellableEvent {
public final NetworkServer server; public final NetworkServer server;
public final Socket socket; public final Socket socket;
//
public S_IncomingConnectionEvent(NetworkServer server, Socket socket) { public S_IncomingConnectionEvent(NetworkServer server, Socket socket) {
this.server = server; this.server = server;
this.socket = socket; this.socket = socket;