diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-29 13:06:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-29 13:06:23 +0100 |
commit | b3713de7cefa87af9ed95d091db497cef63502d0 (patch) | |
tree | d689606317be5f22ede887fc7ae418247a3bef60 /src/libserver/monitored.c | |
parent | 30c0dca001842d9dc009be0ff9ade49b69963bd2 (diff) | |
download | rspamd-b3713de7cefa87af9ed95d091db497cef63502d0.tar.gz rspamd-b3713de7cefa87af9ed95d091db497cef63502d0.zip |
[Fix] Fix pending checks for events
Diffstat (limited to 'src/libserver/monitored.c')
-rw-r--r-- | src/libserver/monitored.c | 2 |
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); } |