From a3923fd54fb1ac35ee1ad6ccaa22aa39ead45d54 Mon Sep 17 00:00:00 2001 From: Tomas Heinrich Date: Tue, 11 Jun 2013 16:27:37 +0200 Subject: bugfix: prevent calling tellLostCnt() twice --- runtime/ratelimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ratelimit.c') diff --git a/runtime/ratelimit.c b/runtime/ratelimit.c index 443a5fa6..6e1df3e2 100644 --- a/runtime/ratelimit.c +++ b/runtime/ratelimit.c @@ -157,9 +157,9 @@ withinRatelimit(ratelimit_t *ratelimit, time_t tt) /* resume if we go out of out time window */ if(tt > ratelimit->begin + ratelimit->interval) { - tellLostCnt(ratelimit); ratelimit->begin = 0; ratelimit->done = 0; + tellLostCnt(ratelimit); } /* do actual limit check */ -- cgit v1.2.3