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 (...) {