]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1914] Use IOService::stopAndPoll
authorMarcin Siodelski <marcin@isc.org>
Fri, 26 Apr 2024 11:27:45 +0000 (13:27 +0200)
committerMarcin Siodelski <marcin@isc.org>
Fri, 26 Apr 2024 11:27:45 +0000 (13:27 +0200)
src/hooks/dhcp/high_availability/tests/ha_test.cc

index cf762f0722e9d799c7ae5e8370f0cf50580c33fd..bf07480c65068436bf04b20e2a8e6e3b458710b8 100644 (file)
@@ -100,11 +100,7 @@ HATest::runIOService(long ms, std::function<bool()> stop_condition) {
 
     timer_->cancel();
 
-    try {
-        // Run any outstanding handlers and protect against uncaught exceptions.
-        io_service_->poll();
-    } catch (...) {
-    }
+    io_service_->stopAndPoll();
 }
 
 boost::shared_ptr<std::thread>