diff options
author | Adam <Adam@anope.org> | 2013-07-05 02:09:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-05 02:09:43 -0400 |
commit | fccc4a4fa672a8f5c8bd306fa91d90a63bfd33a7 (patch) | |
tree | 730df2894f11d119aaebc37b318ba79a3babe90b /src | |
parent | 4325073524e47dfd8a0fa09a93cf388916082c14 (diff) |
Fix sometimes not unloading all modules on shutdown
Diffstat (limited to 'src')
-rw-r--r-- | src/modulemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 7f69c2edb..a4df9004c 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -479,7 +479,7 @@ bool ModuleManager::SetPriority(Module *mod, const Anope::string &i, Priority s, void ModuleManager::UnloadAll() { std::vector<Anope::string> modules; - for (size_t i = 1, j = 0; i != MT_END; i <<= 1, j |= i) + for (size_t i = 1, j = 0; i != MT_END; j |= i, i <<= 1) for (std::list<Module *>::iterator it = Modules.begin(), it_end = Modules.end(); it != it_end; ++it) { Module *m = *it; |