From 379fcbd16098a0798267c9e4afb9b405b362a030 Mon Sep 17 00:00:00 2001 From: Andrew Ellison Date: Wed, 27 Mar 2024 08:04:22 +0200 Subject: [PATCH] Fixed issue 2278, loop->terminated == true when restarting a loop, allowing timer callbacks to update loop->timers in place. --- src/zloop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zloop.c b/src/zloop.c index 9343e186e..83b922f5f 100644 --- a/src/zloop.c +++ b/src/zloop.c @@ -709,6 +709,7 @@ zloop_start (zloop_t *self) { assert (self); int rc = 0; + self->terminated = false; // Main reactor loop while (!zsys_interrupted || self->nonstop) {