diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java index c0aaa807..81f936de 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java @@ -19,8 +19,8 @@ package de.steamwar.core; -import de.steamwar.Reflection; import com.comphenix.tinyprotocol.TinyProtocol; +import de.steamwar.Reflection; import de.steamwar.sql.internal.Statement; import io.netty.channel.ChannelFuture; import org.bukkit.Bukkit; @@ -143,7 +143,6 @@ class CheckpointUtilsJ9 { } Bukkit.getPluginManager().callEvent(new CRIUWakeupEvent()); - Thread.sleep(300); Core.getInstance().getLogger().log(Level.INFO, "Checkpoint restored"); } } diff --git a/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java b/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java index 9c24e450..7351e83a 100644 --- a/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java +++ b/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java @@ -221,6 +221,7 @@ public class Subserver { if (checkpoint) { start(process.getErrorStream(), line -> line.contains("Restore finished successfully.")); start(process.getInputStream(), line -> line.contains("Checkpoint restored")); + Thread.sleep(100); } else { start(process.getInputStream(), line -> { if (line.contains("Loading libraries, please wait"))