From 9fa3aa8d064564f0ec63317d8fe1457e030ee810 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 30 Sep 2024 18:01:28 -0500 Subject: [PATCH] Use stopped() instead of quit flag to exit exec loop --- include/appbase/application_base.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/appbase/application_base.hpp b/include/appbase/application_base.hpp index e837806..a818dcc 100644 --- a/include/appbase/application_base.hpp +++ b/include/appbase/application_base.hpp @@ -131,10 +131,10 @@ class application_base { bool more = true; while (more || io_serv.run_one()) { - if (is_quiting()) - break; try { io_serv.poll(); // queue up any ready; allowing high priority item to get into the queue + if (io_serv.stopped()) + break; // execute the highest priority item more = exec.execute_highest(); } catch (...) {