]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Make the message when reloading a command fails more accurate, and fix reloading...
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 7c82b706b0991d87e83f10f8d5f7e279fc9ea7a7..ab67449a2abeb1f55b4ebd635aec1477b5a59a60 100644 (file)
@@ -762,8 +762,7 @@ int InspIRCd::Run()
 #endif
 
                /* Check if there is a config thread which has finished executing but has not yet been freed */
-               RehashFinishMutex.Lock();
-               if (this->ConfigThread && this->ConfigThread->GetExitFlag())
+               if (this->ConfigThread && this->ConfigThread->IsDone())
                {
                        /* Rehash has completed */
 
@@ -798,7 +797,6 @@ int InspIRCd::Run()
                        delete ConfigThread;
                        ConfigThread = NULL;
                }
-               RehashFinishMutex.Unlock();
 
                /* time() seems to be a pretty expensive syscall, so avoid calling it too much.
                 * Once per loop iteration is pleanty.