aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-30 17:32:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-30 17:32:46 +0100
commit68bf5d19235814aa245a296ca3dff36bd1bad1ce (patch)
tree6c9cc5ead49a47ed3eb349177661f3f2accd932c
parent1906702b4f78171b56a12e2abd3bda074de5ed52 (diff)
downloadrspamd-68bf5d19235814aa245a296ca3dff36bd1bad1ce.tar.gz
rspamd-68bf5d19235814aa245a296ca3dff36bd1bad1ce.zip
Cleanup event before setting it.
-rw-r--r--src/libutil/http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index a9b4e1de2..df44ec9b2 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -1602,6 +1602,7 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn,
}
}
+ event_del (&priv->ev);
event_set (&priv->ev, fd, EV_WRITE, rspamd_http_event_handler, conn);
if (base != NULL) {