SPIGOT-6722: Close entity manager when unloading world

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2021-08-27 19:14:09 +10:00
parent dd503b542b
commit c8ef43f1b5
2 changed files with 90 additions and 0 deletions

View File

@@ -1128,6 +1128,7 @@ public final class CraftServer implements Server {
}
handle.getChunkProvider().close(save);
handle.entityManager.close(save); // SPIGOT-6722: close entityManager
handle.convertable.close();
} catch (Exception ex) {
getLogger().log(Level.SEVERE, null, ex);