We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ba508 commit cc1d5eaCopy full SHA for cc1d5ea
boost/network/protocol/http/client/async_impl.hpp
@@ -57,8 +57,9 @@ struct async_client
57
always_verify_peer_(always_verify_peer) {
58
connection_base::resolver_strand_.reset(
59
new boost::asio::io_service::strand(service_));
60
- lifetime_thread_.reset(new boost::thread(
61
- boost::bind(&boost::asio::io_service::run, &service_)));
+ if(service)
+ lifetime_thread_.reset(new boost::thread(
62
+ boost::bind(&boost::asio::io_service::run, &service_)));
63
}
64
65
~async_client() throw() {
0 commit comments