Merge pull request 'Improve Subserver.run for checkpoint' (#116) from VelocityCore/ImproveCheckpointHandling into main

Reviewed-on: SteamWar/SteamWar#116
This commit is contained in:
2025-07-29 11:56:39 +02:00
@@ -219,8 +219,7 @@ public class Subserver {
Exception ex = null; Exception ex = null;
try { try {
if (checkpoint) { if (checkpoint) {
start(process.getErrorStream(), line -> line.contains("Restore finished successfully.")); start(process.getInputStream(), line -> line.contains("Checkpoint restored"));
Thread.sleep(300);
} else { } else {
start(process.getInputStream(), line -> { start(process.getInputStream(), line -> {
if (line.contains("Loading libraries, please wait")) if (line.contains("Loading libraries, please wait"))