Fix ModuleManager onShuttingDown not using its own method to disable

This commit is contained in:
Vankka 2022-04-26 17:01:05 +03:00
parent 3f030dfada
commit bf60a978eb
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -145,7 +145,7 @@ public class ModuleManager {
public void onShuttingDown(DiscordSRVShuttingDownEvent event) { public void onShuttingDown(DiscordSRVShuttingDownEvent event) {
modules.stream() modules.stream()
.sorted((m1, m2) -> Integer.compare(m2.shutdownOrder(), m1.shutdownOrder())) .sorted((m1, m2) -> Integer.compare(m2.shutdownOrder(), m1.shutdownOrder()))
.forEachOrdered(Module::disable); .forEachOrdered(this::disable);
} }
public void reload() { public void reload() {