forked from SteamWar/SteamWar
Fix NPE
This commit is contained in:
@@ -109,6 +109,7 @@ public class Subserver {
|
||||
this.shutdownCallback = shutdownCallback;
|
||||
this.failureCallback = failureCallback == null ? this::fatalError : failureCallback;
|
||||
this.checkpoint = processBuilder.command().contains("criu");
|
||||
this.thread = new Thread(this::run, "Subserver " + serverName);
|
||||
|
||||
try {
|
||||
this.process = processBuilder.start();
|
||||
@@ -122,7 +123,6 @@ public class Subserver {
|
||||
|
||||
register();
|
||||
|
||||
this.thread = new Thread(this::run, "Subserver " + serverName);
|
||||
this.thread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user