summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/Task.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tasks/Task.cpp b/src/tasks/Task.cpp
index 01acb2c..c9af99e 100644
--- a/src/tasks/Task.cpp
+++ b/src/tasks/Task.cpp
@@ -102,7 +102,11 @@ void Task::Poll()
Task::~Task()
{
-
+ if(!done)
+ {
+ pthread_join(doWorkThread, NULL);
+ pthread_mutex_destroy(&taskMutex);
+ }
}
void Task::before()