diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-10 09:33:48 -0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-10 09:34:04 -0400 |
commit | c6b144054597604e4991874f1bbf9953d691a8da (patch) | |
tree | 4f5e82e0c4853df3c3ea675254d5d354ffd8b8ec /src/libserver/task.c | |
parent | 2d4741851a2329e1cb317e5b6df0e9487c6a5305 (diff) | |
download | rspamd-c6b144054597604e4991874f1bbf9953d691a8da.tar.gz rspamd-c6b144054597604e4991874f1bbf9953d691a8da.zip |
Implement watching for async symbols.
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index e063f0f5b..1638a46f3 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -135,6 +135,11 @@ rspamd_task_fin (void *arg) return TRUE; } + if (RSPAMD_TASK_IS_PROCESSED (task)) { + rspamd_task_reply (task); + return TRUE; + } + /* One more iteration */ return FALSE; } |