summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/d2_client_mgr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dhcpsrv/d2_client_mgr.cc')
-rw-r--r--src/lib/dhcpsrv/d2_client_mgr.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/dhcpsrv/d2_client_mgr.cc b/src/lib/dhcpsrv/d2_client_mgr.cc
index a1068d42d5..6b5e4a4e4e 100644
--- a/src/lib/dhcpsrv/d2_client_mgr.cc
+++ b/src/lib/dhcpsrv/d2_client_mgr.cc
@@ -314,12 +314,7 @@ D2ClientMgr::stopSender() {
}
if (private_io_service_) {
- private_io_service_->stop();
- private_io_service_->restart();
- try {
- private_io_service_->poll();
- } catch (...) {
- }
+ private_io_service_->stopAndPoll();
}
}