diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-01 22:55:46 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-01 22:55:46 +0000 |
commit | c384697c88aa54b5a532cd2edce3c063c70d7868 (patch) | |
tree | 3fc454072b3956f241b091265f606bb9c6ca7f67 /src/server.cpp | |
parent | 50eebfeac8ebe501b021ebf62b0b01464fd79a21 (diff) |
Make rehash generate a new ServerInstance->Config object
This makes it possible to cancel a pending rehash, and fixes possible
threading issues with rehash and other events.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11424 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp index 1c73067b7..01f523e47 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -53,9 +53,7 @@ void RehashHandler::Call(const std::string &reason) FOREACH_MOD_I(Server, I_OnGarbageCollect, OnGarbageCollect()); if (!Server->ConfigThread) { - Server->Config->RehashUserUID = ""; - - Server->ConfigThread = new ConfigReaderThread(Server, false, ""); + Server->ConfigThread = new ConfigReaderThread(Server, ""); Server->Threads->Start(Server->ConfigThread); } } |