X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengine.cpp;h=f757aa56c7d1509f332306b7d2bace777c9912e0;hb=60658d0bdbc8d047c3dbfc19abb005e147b5b2b9;hp=4269c1aefba2018c664d83cda6efb9c3c5a58fdb;hpb=82435b6fa8805baa65e04a582f3e4a2c84237f73;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengine.cpp b/src/threadengine.cpp index 4269c1aef..f757aa56c 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -26,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); }