]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengine.cpp
Allow modules to prevent a failed connection from being closed.
[user/henk/code/inspircd.git] / src / threadengine.cpp
index 8e1bac4705842a9037da6d4331bdf25974cc62bd..f757aa56c7d1509f332306b7d2bace777c9912e0 100644 (file)
@@ -18,7 +18,6 @@
 
 
 #include "inspircd.h"
-#include "threadengine.h"
 
 void Thread::SetExitFlag()
 {
@@ -27,14 +26,5 @@ void Thread::SetExitFlag()
 
 void Thread::join()
 {
-               state->FreeThread(this);
-               delete state;
-               state = 0;
-}
-
-/** If this thread has a Creator set, call it to
- * free the thread
- */
-Thread::~Thread()
-{
+       ServerInstance->Threads.Stop(this);
 }