aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-22 12:18:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-22 12:18:23 +0000
commit17a9df2207add70ba14d2ab8afceed18f9e33fa1 (patch)
tree30863662a8148708f7611824403a504a4168fe27 /src/lua
parent7157661c6ff00ea27466caba3e05c5d65f819ee9 (diff)
downloadrspamd-17a9df2207add70ba14d2ab8afceed18f9e33fa1.tar.gz
rspamd-17a9df2207add70ba14d2ab8afceed18f9e33fa1.zip
[Minor] Lua_udp: Fix event deletion
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_udp.c b/src/lua/lua_udp.c
index d5e743048..aac22695f 100644
--- a/src/lua/lua_udp.c
+++ b/src/lua/lua_udp.c
@@ -115,7 +115,7 @@ lua_udp_cbd_fin (gpointer p)
struct lua_udp_cbdata *cbd = (struct lua_udp_cbdata *)p;
if (cbd->sock != -1) {
- if (rspamd_event_pending (&cbd->io, EV_READ|EV_WRITE)) {
+ if (cbd->io.ev_base != NULL) {
event_del (&cbd->io);
}