commit e7ec90d: [Minor] Try to fix finishing handlers
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 4 10:00:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-04 10:58:26 +0100
URL: https://github.com/rspamd/rspamd/commit/e7ec90d67fa136d385a72c4393cfd018307d356a (HEAD -> master)
[Minor] Try to fix finishing handlers
---
src/libserver/worker_util.c | 3 +++
src/worker.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index 0b8600160..0007fbe35 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -107,6 +107,9 @@ rspamd_worker_check_finished (EV_P_ ev_timer *w, int revents)
if (refcount == 1) {
ev_break (EV_A_ EVBREAK_ONE);
}
+ else {
+ ev_timer_again (EV_A_ w);
+ }
}
}
diff --git a/src/worker.c b/src/worker.c
index 0ed298181..349a0ea92 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -76,7 +76,7 @@ rspamd_worker_finalize (gpointer user_data)
if (!(task->flags & RSPAMD_TASK_FLAG_PROCESSING)) {
msg_info_task ("finishing actions has been processed, terminating");
- ev_break (task->event_loop, EVBREAK_ALL);
+ /* ev_break (task->event_loop, EVBREAK_ALL); */
rspamd_session_destroy (task->s);
return TRUE;
More information about the Commits
mailing list