Close skin uploader on shutdown when using Floodgate

This commit is contained in:
Tim203 2021-06-10 00:52:57 +02:00
parent a24d2a957c
commit 13f8b54d77
No known key found for this signature in database
GPG key ID: 064EE9F5BF7C3EE8
2 changed files with 4 additions and 1 deletions

View file

@ -440,6 +440,9 @@ public class GeyserConnector {
if (timeSyncer != null) {
timeSyncer.shutdown();
}
if (skinUploader != null) {
skinUploader.close();
}
newsHandler.shutdown();
players.clear();
defaultAuthType = null;

View file

@ -229,7 +229,7 @@ public final class FloodgateSkinUploader {
return this;
}
public void stop() {
public void close() {
client.close();
}
}