Synchronize ModuleManager reload

This commit is contained in:
Vankka 2024-06-24 02:29:45 +03:00
parent 654bfb5907
commit a796d4504a
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB

View File

@ -189,7 +189,7 @@ public class ModuleManager {
reload();
}
public List<DiscordSRV.ReloadResult> reload() {
public synchronized List<DiscordSRV.ReloadResult> reload() {
JDAConnectionManager connectionManager = discordSRV.discordConnectionManager();
Set<DiscordSRVApi.ReloadResult> reloadResults = new HashSet<>();