1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-23 16:59:33 +00:00

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
2 changed files with 4 additions and 1 deletions

View File

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

View File

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