summaryrefslogtreecommitdiffstats
path: root/src/lib/asiodns
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asiodns')
-rw-r--r--src/lib/asiodns/tests/io_fetch_unittest.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/asiodns/tests/io_fetch_unittest.cc b/src/lib/asiodns/tests/io_fetch_unittest.cc
index 66dc67ab5a..7db3dc66bc 100644
--- a/src/lib/asiodns/tests/io_fetch_unittest.cc
+++ b/src/lib/asiodns/tests/io_fetch_unittest.cc
@@ -157,12 +157,7 @@ public:
virtual ~IOFetchTest() {
shutdown_ = true;
timer_.cancel();
- service_->stop();
- service_->restart();
- try {
- service_->poll();
- } catch (...) {
- }
+ service_->stopAndPoll();
}
/// \brief UDP Response handler (the "remote UDP DNS server")