From 22e89cf896f5f70a1498089f71122a581d9fe015 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 22 Apr 2017 12:05:56 +0200 Subject: [PATCH] always detach thread --- src/lib/utils/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {