From d233006fb68c785e6432327236b9e1f0c3f38b03 Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Sat, 2 Jul 2022 12:24:38 +0300 Subject: Dispose Limbo on reload --- src/main/java/net/elytrium/limboauth/LimboAuth.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index 0287dea..29b7e77 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -349,6 +349,10 @@ public class LimboAuth { } } + if (this.authServer != null) { + this.authServer.dispose(); + } + this.authServer = this.factory .createLimbo(authWorld) .setName("LimboAuth") -- cgit