forked from SteamWar/SteamWar
Fix CheckpointUtilsJ9
This commit is contained in:
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user