forked from SteamWar/SteamWar
Rever CheckpointUtilsJ9
This commit is contained in:
@@ -95,6 +95,9 @@ class CheckpointUtilsJ9 {
|
||||
private static void freezeInternal(Path path) throws Exception {
|
||||
Bukkit.getPluginManager().callEvent(new CRIUSleepEvent());
|
||||
|
||||
Bukkit.getWorlds().forEach(FlatteningWrapper.impl::syncSave);
|
||||
Statement.closeAll();
|
||||
|
||||
// Close socket
|
||||
Object serverConnection = TinyProtocol.getServerConnection(Core.getInstance());
|
||||
List<?> channels = channelFutures.get(serverConnection);
|
||||
@@ -103,9 +106,6 @@ class CheckpointUtilsJ9 {
|
||||
}
|
||||
channels.clear();
|
||||
|
||||
Bukkit.getWorlds().forEach(FlatteningWrapper.impl::syncSave);
|
||||
Statement.closeAll();
|
||||
|
||||
System.runFinalization();
|
||||
System.gc();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user