diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-30 18:51:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-30 18:51:20 +0100 |
commit | 29180862cab52bd7a1506e3777c9e6e59a6a4993 (patch) | |
tree | ba0b664c0728b2fcbda0bbd5a38d2f0b2a92e122 | |
parent | 0bcb1aae9ce1c4adb3661718da548ee1f7441c90 (diff) | |
download | rspamd-29180862cab52bd7a1506e3777c9e6e59a6a4993.tar.gz rspamd-29180862cab52bd7a1506e3777c9e6e59a6a4993.zip |
Do not delete uninitialized events.
-rw-r--r-- | src/libutil/http.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index df44ec9b2..db7ea83fa 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1602,7 +1602,10 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, } } - event_del (&priv->ev); + if (base != NULL && event_get_base (&priv->ev) == base) { + event_del (&priv->ev); + } + event_set (&priv->ev, fd, EV_WRITE, rspamd_http_event_handler, conn); if (base != NULL) { |