summaryrefslogtreecommitdiff
path: root/src/tasks/Task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks/Task.cpp')
-rw-r--r--src/tasks/Task.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tasks/Task.cpp b/src/tasks/Task.cpp
index b2ded16..8ab0ded 100644
--- a/src/tasks/Task.cpp
+++ b/src/tasks/Task.cpp
@@ -86,16 +86,15 @@ void Task::Poll()
notifyStatusMain();
}
- if(done)
+ if(newDone!=done)
{
+ done = newDone;
+
pthread_join(doWorkThread, NULL);
pthread_mutex_destroy(&taskMutex);
+
after();
- }
-
- if(newDone!=done)
- {
- done = newDone;
+
notifyDoneMain();
}
}