diff options
Diffstat (limited to 'src/threadengine.cpp')
-rw-r--r-- | src/threadengine.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/threadengine.cpp b/src/threadengine.cpp index 8e1bac470..f757aa56c 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -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); } |