Bug fix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.finn.unlegitlibrary</groupId>
|
||||
<artifactId>unlegitlibrary</artifactId>
|
||||
<version>1.5.3-Java1.8</version>
|
||||
<version>1.5.4-Java1.8</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
|
@@ -202,7 +202,7 @@ public class NetworkServer extends DefaultMethodsOverrider {
|
||||
if (logger == null) System.err.println("Restart exception: " + sleepThreadException.getMessage());
|
||||
else logger.exception("Restart exception", sleepThreadException);
|
||||
}
|
||||
|
||||
//
|
||||
currentAttempts++;
|
||||
if (currentAttempts <= maxRestartAttempts || maxRestartAttempts < 0) return start();
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ public class S_IncomingConnectionEvent extends CancellableEvent {
|
||||
|
||||
public final NetworkServer server;
|
||||
public final Socket socket;
|
||||
|
||||
//
|
||||
public S_IncomingConnectionEvent(NetworkServer server, Socket socket) {
|
||||
this.server = server;
|
||||
this.socket = socket;
|
||||
|
Reference in New Issue
Block a user