aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-24 21:42:47 -0400
committerGravatar Daniel De Graaf2010-08-24 21:42:47 -0400
commit468bbfda34453f50b533701c8ef50ad22def092a (patch)
treef9207bbfb71919365b22c6dddcfbbaabed478723 /src/server.cpp
parentPrevent using /TMODE to register channels over the limit (diff)
Replace thread engine with job engine
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/server.cpp b/src/server.cpp
index a52cde91f..a95fcece1 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -47,13 +47,11 @@ void InspIRCd::Exit(int status)
void InspIRCd::Rehash(const std::string &reason)
{
- ServerInstance->SNO->WriteToSnoMask('a', "Rehashing config file %s %s",ServerConfig::CleanFilename(ServerInstance->ConfigFileName.c_str()), reason.c_str());
- ServerInstance->RehashUsersAndChans();
- FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect());
- if (!ServerInstance->ConfigThread)
+ if (!ServerInstance->PendingRehash)
{
- ServerInstance->ConfigThread = new ConfigReaderThread("");
- ServerInstance->Threads->Start(ServerInstance->ConfigThread);
+ ServerInstance->SNO->WriteToSnoMask('a', "Rehashing config file %s %s",ServerConfig::CleanFilename(ServerInstance->ConfigFileName.c_str()), reason.c_str());
+ ServerInstance->PendingRehash = new ConfigReaderThread("");
+ ServerInstance->Threads->Submit(ServerInstance->PendingRehash);
}
}