jobs are getting destroyed by calling destroy_all
authorJan Hutter <jhutter@hsr.ch>
Thu, 17 Nov 2005 12:50:13 +0000 (12:50 -0000)
committerJan Hutter <jhutter@hsr.ch>
Thu, 17 Nov 2005 12:50:13 +0000 (12:50 -0000)
Source/charon/queues/event_queue.c
Source/charon/queues/job_queue.c

index 811f2e7..26aa270 100644 (file)
@@ -336,7 +336,7 @@ static status_t event_queue_destroy(private_event_queue_t *this)
                        this->list->destroy(this->list);
                        break;
                }
-               event->job->destroy(event->job);
+               event->job->destroy_all(event->job);
                event->destroy(event);
        }
        this->list->destroy(this->list);
index b562522..fff4535 100644 (file)
@@ -118,7 +118,7 @@ static status_t job_queue_destroy (private_job_queue_t *this)
                        this->list->destroy(this->list);
                        break;
                }
-               job->destroy(job);
+               job->destroy_all(job);
        }
        this->list->destroy(this->list);