Skip to content

Commit

Permalink
Close skin uploader on shutdown when using Floodgate
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Jun 9, 2021
1 parent a24d2a9 commit 13f8b54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ public void run() {
if (timeSyncer != null) {
timeSyncer.shutdown();
}
if (skinUploader != null) {
skinUploader.close();
}
newsHandler.shutdown();
players.clear();
defaultAuthType = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public FloodgateSkinUploader start() {
return this;
}

public void stop() {
public void close() {
client.close();
}
}

0 comments on commit 13f8b54

Please sign in to comment.