aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-07-02 12:24:38 +0300
committerPetr Ilin <hevav@hevav.dev>2022-07-02 12:24:38 +0300
commitd233006fb68c785e6432327236b9e1f0c3f38b03 (patch)
treec9af3c79912dce89c89ae8d837e45a629323c060 /src/main/java/net
parent4cfd89471225cbdb47ad0d6999646013932380d4 (diff)
downloadLimboAuth-d233006fb68c785e6432327236b9e1f0c3f38b03.tar.gz
LimboAuth-d233006fb68c785e6432327236b9e1f0c3f38b03.tar.bz2
LimboAuth-d233006fb68c785e6432327236b9e1f0c3f38b03.zip
Dispose Limbo on reload
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/elytrium/limboauth/LimboAuth.java4
1 files changed, 4 insertions, 0 deletions
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")