From 13f8b54d77d55bf413dc90ddcee0a8d8c8f9d779 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Thu, 10 Jun 2021 00:52:57 +0200 Subject: [PATCH] Close skin uploader on shutdown when using Floodgate --- .../src/main/java/org/geysermc/connector/GeyserConnector.java | 3 +++ .../org/geysermc/connector/skin/FloodgateSkinUploader.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java index ac77388ff..4de9768f7 100644 --- a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java +++ b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java @@ -440,6 +440,9 @@ public class GeyserConnector { if (timeSyncer != null) { timeSyncer.shutdown(); } + if (skinUploader != null) { + skinUploader.close(); + } newsHandler.shutdown(); players.clear(); defaultAuthType = null; diff --git a/connector/src/main/java/org/geysermc/connector/skin/FloodgateSkinUploader.java b/connector/src/main/java/org/geysermc/connector/skin/FloodgateSkinUploader.java index beed78e05..1849d4812 100644 --- a/connector/src/main/java/org/geysermc/connector/skin/FloodgateSkinUploader.java +++ b/connector/src/main/java/org/geysermc/connector/skin/FloodgateSkinUploader.java @@ -229,7 +229,7 @@ public final class FloodgateSkinUploader { return this; } - public void stop() { + public void close() { client.close(); } }