diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-19 17:07:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | 675b33dd2025cc1f8e732efa9ffc72d55e5a35d9 (patch) | |
tree | 1492d1527bd84c5b032ada128d88a1fb12449102 /src/libserver/task.c | |
parent | eeb0beb73d7769341d1b6aa8fac4f27f7dc76b2e (diff) | |
download | rspamd-675b33dd2025cc1f8e732efa9ffc72d55e5a35d9.tar.gz rspamd-675b33dd2025cc1f8e732efa9ffc72d55e5a35d9.zip |
[Project] Adopt normal worker and contorller
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 84ea1417a..3c92e05b9 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -316,13 +316,8 @@ rspamd_task_free (struct rspamd_task *task) g_error_free (task->err); } - if (rspamd_event_pending (&task->timeout_ev, EV_TIMEOUT)) { - event_del (&task->timeout_ev); - } - - if (task->guard_ev) { - event_del (task->guard_ev); - } + ev_timer_stop (task->event_loop, &task->timeout_ev); + ev_io_stop (task->event_loop, &task->guard_ev); if (task->sock != -1) { close (task->sock); |