]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_udp: Fix event deletion
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Jan 2019 12:18:23 +0000 (12:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Jan 2019 12:18:23 +0000 (12:18 +0000)
src/lua/lua_udp.c

index d5e7430489c771ee1478141e39028de5932c2ba9..aac22695f7729867f1513677011fc4f7106e27e2 100644 (file)
@@ -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);
                }