always detach thread

This commit is contained in:
john30
2017-04-22 12:05:56 +02:00
parent 62bab7d280
commit 22e89cf896
+1 -1
View File
@@ -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) {