diff --git a/rdsn b/rdsn index 9622574877..9a5feec63e 160000 --- a/rdsn +++ b/rdsn @@ -1 +1 @@ -Subproject commit 9622574877c8ed35f2b35e839b29a92de039aa14 +Subproject commit 9a5feec63e11b02c199315f41e01def96aeebcb1 diff --git a/src/reporter/pegasus_io_service.h b/src/reporter/pegasus_io_service.h index 396a1e2d66..6db9c739e9 100644 --- a/src/reporter/pegasus_io_service.h +++ b/src/reporter/pegasus_io_service.h @@ -30,6 +30,14 @@ class pegasus_io_service : public ::dsn::utils::singleton } } + ~pegasus_io_service() + { + ios.stop(); + for (auto worker : _workers) { + worker->join(); + } + } + boost::asio::io_service ios; private: