diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-11-30 18:24:17 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-11-30 18:24:17 +0100 |
commit | c5f19db85c2a2669884eb8ac72362c86afb65617 (patch) | |
tree | 4ef7ca1843481a076d7f92317270a57bde4d8996 /src/modules/m_globalload.cpp | |
parent | a2f23523cff4dcc7dfac60781027fc90074c1ebd (diff) |
Don't submit a reload worker if the module doing the reload is scheduled for unload
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r-- | src/modules/m_globalload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp index 9e0ec7705..aed65045f 100644 --- a/src/modules/m_globalload.cpp +++ b/src/modules/m_globalload.cpp @@ -151,7 +151,7 @@ class CommandGreloadmodule : public Command if (m) { GReloadModuleWorker* worker = NULL; - if (m != creator) + if ((m != creator) && (!creator->dying)) worker = new GReloadModuleWorker(user->nick, user->uuid, parameters[0]); ServerInstance->Modules->Reload(m, worker); } |