mirror of
https://github.com/plexusorg/Plex.git
synced 2025-02-21 15:44:37 +00:00
Fix errors when unloading modules with listeners
This commit is contained in:
parent
06e51926be
commit
d7cbbc8d52
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ public class ModuleManager
|
|||
Plex.get().getServer().getCommandMap().getKnownCommands().remove(plexCommand.getName());
|
||||
plexCommand.getAliases().forEach(alias -> Plex.get().getServer().getCommandMap().getKnownCommands().remove(alias));
|
||||
});
|
||||
module.getListeners().forEach(module::unregisterListener);
|
||||
module.getListeners().stream().toList().forEach(module::unregisterListener);
|
||||
module.disable();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue