summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Task.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Task.cc b/lib/Task.cc
index 999881e..5a8def0 100644
--- a/lib/Task.cc
+++ b/lib/Task.cc
@@ -16,6 +16,7 @@ Task::Task() : current(0), state(TASK_ON_HOLD), stopped(false), suspended(false)
Task::~Task() {
TaskMan::RemoveFromWatches(this);
+ TaskMan::RemoveTimeout(this);
}
int Task::Do() throw (GeneralException) {
@@ -110,3 +111,7 @@ Task * Task::WaitedBy() {
void Task::RemoveFromWatches() {
wbta = 0;
}
+
+void Task::RemoveTimeout() {
+ TaskMan::RemoveTimeout(this);
+}