Cleanup tasks

This commit is contained in:
Braydon 2024-04-22 21:48:31 -04:00
parent 02695ce7a2
commit 1392d82480

@ -28,6 +28,7 @@ import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import com.google.common.hash.Hashing;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import lombok.Getter;
import lombok.NonNull;
import lombok.SneakyThrows;
@ -565,4 +566,11 @@ public final class MojangService {
}
return blocked;
}
@PreDestroy
public void cleanup() {
mojangServerStatuses.clear();
bannedServerHashes.clear();
blockedServersCache.clear();
}
}