diff options
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r-- | src/libutil/upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 883c6f2eb..3703bdd19 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -837,7 +837,7 @@ rspamd_upstream_restore_cb (gpointer elt, gpointer ls) /* Here the upstreams list is already locked */ RSPAMD_UPSTREAM_LOCK (up->lock); - if (event_get_base (&up->ev)) { + if (rspamd_event_pending (&up->ev, EV_TIMEOUT)) { event_del (&up->ev); } g_ptr_array_add (ups->alive, up); |