Flush task queues explicitly, not implicitly if task returns ALREADY_DONE

This commit is contained in:
Martin Willi
2012-05-21 14:17:09 +02:00
parent cbc1a20ffe
commit 7ce504e182
6 changed files with 20 additions and 12 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ struct task_t {
* - FAILED if a critical error occurred
* - DESTROY_ME if IKE_SA has been properly deleted
* - NEED_MORE if another call to build/process needed
* - ALREADY_DONE to cancel all active or passive tasks
* - ALREADY_DONE to cancel task processing
* - SUCCESS if task completed
*/
status_t (*build) (task_t *this, message_t *message);
@@ -144,7 +144,7 @@ struct task_t {
* - FAILED if a critical error occurred
* - DESTROY_ME if IKE_SA has been properly deleted
* - NEED_MORE if another call to build/process needed
* - ALREADY_DONE to cancel all active or passive tasks
* - ALREADY_DONE to cancel task processing
* - SUCCESS if task completed
*/
status_t (*process) (task_t *this, message_t *message);