]> source.dussan.org Git - rspamd.git/commitdiff
* Delay timer must be registered in async session to correctly handle connection...
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 28 Jun 2010 12:15:14 +0000 (16:15 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 28 Jun 2010 12:15:14 +0000 (16:15 +0400)
src/smtp.c

index 4f1bfaa198a7e5c30f826bdae5f378dee74cbb7a..23361fc5fbc18177e5551d30e30ed31b40e34577 100644 (file)
@@ -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;