diff options
author | Petr Ilin <hevav@hevav.dev> | 2022-07-02 12:24:38 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2022-07-02 12:24:38 +0300 |
commit | d233006fb68c785e6432327236b9e1f0c3f38b03 (patch) | |
tree | c9af3c79912dce89c89ae8d837e45a629323c060 /src/main | |
parent | 4cfd89471225cbdb47ad0d6999646013932380d4 (diff) | |
download | LimboAuth-d233006fb68c785e6432327236b9e1f0c3f38b03.tar.gz LimboAuth-d233006fb68c785e6432327236b9e1f0c3f38b03.tar.bz2 LimboAuth-d233006fb68c785e6432327236b9e1f0c3f38b03.zip |
Dispose Limbo on reload
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/LimboAuth.java | 4 |
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") |