diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-06 13:35:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-06 13:35:14 +0100 |
commit | 915a460b6a425cc5694f4166c86ee8138ffd0ace (patch) | |
tree | 9bb4d5be1cdbc13522241a1035367ab58298b001 /src/libutil/ssl_util.c | |
parent | 619fdbc7b82eea8f7b4f38fa9f29c02802619727 (diff) | |
download | rspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.tar.gz rspamd-915a460b6a425cc5694f4166c86ee8138ffd0ace.zip |
[Minor] Fix event pending checks
Diffstat (limited to 'src/libutil/ssl_util.c')
-rw-r--r-- | src/libutil/ssl_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/ssl_util.c b/src/libutil/ssl_util.c index 09ce9b01b..95245aa4c 100644 --- a/src/libutil/ssl_util.c +++ b/src/libutil/ssl_util.c @@ -534,7 +534,7 @@ rspamd_ssl_connect_fd (struct rspamd_ssl_connection *conn, gint fd, if (ret == 1) { conn->state = ssl_conn_connected; - if (event_get_base (ev)) { + if (rspamd_event_pending (ev, EV_TIMEOUT|EV_WRITE|EV_READ)) { event_del (ev); } @@ -561,7 +561,7 @@ rspamd_ssl_connect_fd (struct rspamd_ssl_connection *conn, gint fd, return FALSE; } - if (event_get_base (ev)) { + if (rspamd_event_pending (ev, EV_TIMEOUT|EV_WRITE|EV_READ)) { event_del (ev); } |