mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
Unregister modules from the event bus on disable
This commit is contained in:
parent
8a673875a6
commit
6944cf2579
@ -134,6 +134,7 @@ public class ModuleManager {
|
||||
AbstractModule<?> abstractModule = getAbstract(module);
|
||||
try {
|
||||
logger.debug(module + " disabling");
|
||||
discordSRV.eventBus().unsubscribe(abstractModule);
|
||||
abstractModule.disable();
|
||||
} catch (Throwable t) {
|
||||
discordSRV.logger().error("Failed to disable " + abstractModule.toString(), t);
|
||||
|
Loading…
Reference in New Issue
Block a user