From: Vsevolod Stakhov Date: Mon, 28 Jun 2010 12:15:14 +0000 (+0400) Subject: * Delay timer must be registered in async session to correctly handle connection... X-Git-Tag: 0.3.1~78 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a751316aab9753c2c4b1915aff8fb9fd13a1a00;p=rspamd.git * Delay timer must be registered in async session to correctly handle connection termination --- diff --git a/src/smtp.c b/src/smtp.c index 4f1bfaa19..23361fc5f 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -658,6 +658,7 @@ smtp_make_delay (struct smtp_session *session) evtimer_set (tev, smtp_delay_handler, session); evtimer_add (tev, tv); + register_async_event (session->s, (event_finalizer_t)event_del, tev, FALSE); } else if (session->state == SMTP_STATE_DELAY) { session->state = SMTP_STATE_GREETING;