From c78cba5034614087f43148781dabce67442a36d5 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Thu, 4 Feb 2021 10:12:13 +0100 Subject: [PATCH] QUEUE: Reset the srv->update_* fields when update is finished --- src/net/listen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/listen.c b/src/net/listen.c index c8e4cc54..11a8561a 100644 --- a/src/net/listen.c +++ b/src/net/listen.c @@ -877,7 +877,9 @@ redo: srv->update_current++; if (srv->update_current >= srv->update_total) (LOG_WARN("EVENT", "Force updating state because tikcs exceded the update count"), - srv->is_updating = 0); + srv->is_updating = 0, + srv->update_total = 0, + srv->update_current = 0); }) /* The null event / ignored events, just return / continue */ -- GitLab