Skip to content

Commit addf968

Browse files
committed
Create thread in async_client when io_service is own
Fixes a bug in previews commit when if was inverted.
1 parent 22375ba commit addf968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct async_client
5757
always_verify_peer_(always_verify_peer) {
5858
connection_base::resolver_strand_.reset(
5959
new boost::asio::io_service::strand(service_));
60-
if(service)
60+
if(!service)
6161
lifetime_thread_.reset(new boost::thread(
6262
boost::bind(&boost::asio::io_service::run, &service_)));
6363
}

0 commit comments

Comments
 (0)