aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/monitored.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/monitored.c')
-rw-r--r--src/libserver/monitored.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c
index 690acfe7d..4d88bb4f9 100644
--- a/src/libserver/monitored.c
+++ b/src/libserver/monitored.c
@@ -651,7 +651,7 @@ rspamd_monitored_start (struct rspamd_monitored *m)
jittered = rspamd_time_jitter (m->ctx->monitoring_interval * m->monitoring_mult,
0.0);
- if (ev_is_active (&m->periodic)) {
+ if (ev_can_stop (&m->periodic)) {
ev_timer_stop (m->ctx->event_loop, &m->periodic);
}