forked from SteamWar/SteamWar
Fix server transfer failure after checkpoint restoration
This commit is contained in:
@@ -220,6 +220,7 @@ public class Subserver {
|
|||||||
try {
|
try {
|
||||||
if (checkpoint) {
|
if (checkpoint) {
|
||||||
start(process.getErrorStream(), line -> line.contains("Restore finished successfully."));
|
start(process.getErrorStream(), line -> line.contains("Restore finished successfully."));
|
||||||
|
Thread.sleep(300); //Wait for port to be reopened
|
||||||
} else {
|
} else {
|
||||||
start(process.getInputStream(), line -> {
|
start(process.getInputStream(), line -> {
|
||||||
if (line.contains("Loading libraries, please wait"))
|
if (line.contains("Loading libraries, please wait"))
|
||||||
|
|||||||
Reference in New Issue
Block a user