diff options
Diffstat (limited to 'src/tasks/Task.cpp')
| -rw-r--r-- | src/tasks/Task.cpp | 6 |
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() |
