summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp6/tests/dhcp6_test_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/dhcp6/tests/dhcp6_test_utils.h')
-rw-r--r--src/bin/dhcp6/tests/dhcp6_test_utils.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/dhcp6/tests/dhcp6_test_utils.h b/src/bin/dhcp6/tests/dhcp6_test_utils.h
index e519a6e267..ddcd64a8a2 100644
--- a/src/bin/dhcp6/tests/dhcp6_test_utils.h
+++ b/src/bin/dhcp6/tests/dhcp6_test_utils.h
@@ -218,12 +218,7 @@ public:
virtual ~NakedDhcpv6Srv() {
// Close the lease database
isc::dhcp::LeaseMgrFactory::destroy();
- getIOService()->stop();
- getIOService()->restart();
- try {
- getIOService()->poll();
- } catch (...) {
- }
+ getIOService()->stopAndPoll();
}
/// @brief Processes incoming Solicit message.