diff --git a/src/lib/utils/thread.cpp b/src/lib/utils/thread.cpp index bc428d8c..e50eebcc 100644 --- a/src/lib/utils/thread.cpp +++ b/src/lib/utils/thread.cpp @@ -33,8 +33,8 @@ void* Thread::runThread(void* arg) { Thread::~Thread() { if (m_started) { pthread_cancel(m_threadid); - pthread_detach(m_threadid); } + pthread_detach(m_threadid); } bool Thread::start(const char* name) {