X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fthreadengine.cpp;h=f757aa56c7d1509f332306b7d2bace777c9912e0;hb=9ad873886e518bf3621a88e8c48607ab79020c0a;hp=82aa78a364c35cf3bb48dd785fae5f60b0b54135;hpb=36b9b4b39900d1b2e3b182e1b50370b0c9dcb9ae;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/threadengine.cpp b/src/threadengine.cpp index 82aa78a36..f757aa56c 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -26,12 +26,5 @@ void Thread::SetExitFlag() void Thread::join() { - state.FreeThread(this); -} - -/** If this thread has a Creator set, call it to - * free the thread - */ -Thread::~Thread() -{ + ServerInstance->Threads.Stop(this); }