diff options
Diffstat (limited to 'src/basic/ratelimit.c')
-rw-r--r-- | src/basic/ratelimit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/ratelimit.c b/src/basic/ratelimit.c index 4e04e04426..2e94eed843 100644 --- a/src/basic/ratelimit.c +++ b/src/basic/ratelimit.c @@ -13,7 +13,7 @@ bool ratelimit_below(RateLimit *r) { assert(r); - if (r->interval <= 0 || r->burst <= 0) + if (!ratelimit_configured(r)) return true; ts = now(CLOCK_MONOTONIC); |