This commit is contained in:
2024-10-05 16:30:18 +02:00
parent 762bdcdb49
commit b12a9e859d
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
<groupId>me.finn.unlegitlibrary</groupId> <groupId>me.finn.unlegitlibrary</groupId>
<artifactId>unlegitlibrary</artifactId> <artifactId>unlegitlibrary</artifactId>
<version>1.5.3-Java1.8</version> <version>1.5.4-Java1.8</version>
<properties> <properties>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>

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;