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