Skip to content

Commit 5f3ce3b

Browse files
committed
1 parent 23fe6eb commit 5f3ce3b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

boost/network/protocol/http/client/async_impl.hpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ namespace boost { namespace network { namespace http {
5959

6060
~async_client() throw ()
6161
{
62-
sentinel_.reset();
63-
if (lifetime_thread_.get()) {
64-
lifetime_thread_->join();
65-
lifetime_thread_.reset();
62+
try {
63+
sentinel_.reset();
64+
if (lifetime_thread_.get()) {
65+
lifetime_thread_->join();
66+
lifetime_thread_.reset();
67+
}
68+
}
69+
catch (...) {
70+
// https://github.com/cpp-netlib/cpp-netlib/issues/358
6671
}
6772
}
6873

0 commit comments

Comments
 (0)