Fix CheckpointUtilsJ9

This commit is contained in:
2025-07-30 21:01:18 +02:00
parent 1c1e2e2efe
commit 14be3a8e3b
2 changed files with 2 additions and 2 deletions
@@ -19,8 +19,8 @@
package de.steamwar.core; package de.steamwar.core;
import de.steamwar.Reflection;
import com.comphenix.tinyprotocol.TinyProtocol; import com.comphenix.tinyprotocol.TinyProtocol;
import de.steamwar.Reflection;
import de.steamwar.sql.internal.Statement; import de.steamwar.sql.internal.Statement;
import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFuture;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@@ -143,7 +143,6 @@ class CheckpointUtilsJ9 {
} }
Bukkit.getPluginManager().callEvent(new CRIUWakeupEvent()); Bukkit.getPluginManager().callEvent(new CRIUWakeupEvent());
Thread.sleep(300);
Core.getInstance().getLogger().log(Level.INFO, "Checkpoint restored"); Core.getInstance().getLogger().log(Level.INFO, "Checkpoint restored");
} }
} }
@@ -221,6 +221,7 @@ public class Subserver {
if (checkpoint) { if (checkpoint) {
start(process.getErrorStream(), line -> line.contains("Restore finished successfully.")); start(process.getErrorStream(), line -> line.contains("Restore finished successfully."));
start(process.getInputStream(), line -> line.contains("Checkpoint restored")); start(process.getInputStream(), line -> line.contains("Checkpoint restored"));
Thread.sleep(100);
} else { } else {
start(process.getInputStream(), line -> { start(process.getInputStream(), line -> {
if (line.contains("Loading libraries, please wait")) if (line.contains("Loading libraries, please wait"))