From d5ad81d5312cc8b8d97da07a635b18e051417e5f Mon Sep 17 00:00:00 2001 From: john30 Date: Wed, 26 Apr 2017 09:35:44 +0200 Subject: [PATCH] revert 22e89cf --- 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 e50eebcc..bc428d8c 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) {