aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-01-31 21:24:32 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-01-31 21:24:32 +0400
commit2d708971163dc99f9c29cc47e7d4f56a3af882c5 (patch)
tree91d29c6ac7727405e01f065eabe062431302483c /src/smtp.c
parent3958296431df16a30550047103008c1324fa331a (diff)
downloadrspamd-2d708971163dc99f9c29cc47e7d4f56a3af882c5.tar.gz
rspamd-2d708971163dc99f9c29cc47e7d4f56a3af882c5.zip
Rework events library slightly:
- forced events are no longer checked or created - add async threads to prevent session to be destroyed till all threads are finished
Diffstat (limited to 'src/smtp.c')
-rw-r--r--src/smtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/smtp.c b/src/smtp.c
index 2b5236cc6..46df67b36 100644
--- a/src/smtp.c
+++ b/src/smtp.c
@@ -589,8 +589,7 @@ smtp_dns_cb (struct rspamd_dns_reply *reply, void *arg)
gint res = 0;
union rspamd_reply_element *elt;
GList *cur;
-
- remove_forced_event (session->s, (event_finalizer_t)smtp_dns_cb);
+
switch (session->state) {
case SMTP_STATE_RESOLVE_REVERSE:
/* Parse reverse reply and start resolve of this ip */