forked from SteamWar/SteamWar
Merge pull request 'Improve perceived server start time' (#108) from VelocityCore/ImprovePerceivedServerStartTimeWithCRIU into main
Reviewed-on: SteamWar/SteamWar#108 Reviewed-by: Chaoscaot <max@chaoscaot.de>
This commit is contained in:
@@ -219,8 +219,7 @@ public class Subserver {
|
||||
Exception ex = null;
|
||||
try {
|
||||
if (checkpoint) {
|
||||
start(process.getErrorStream(), line -> line.contains("Restore finished successfully."));
|
||||
Thread.sleep(300); //Wait for port to be reopened
|
||||
start(process.getErrorStream(), line -> line.contains("Checkpoint restored"));
|
||||
} else {
|
||||
start(process.getInputStream(), line -> {
|
||||
if (line.contains("Loading libraries, please wait"))
|
||||
|
||||
Reference in New Issue
Block a user