File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ struct async_client
57
57
always_verify_peer_(always_verify_peer) {
58
58
connection_base::resolver_strand_.reset (
59
59
new boost::asio::io_service::strand (service_));
60
- lifetime_thread_.reset (new boost::thread (
61
- boost::bind (&boost::asio::io_service::run, &service_)));
60
+ if (!service)
61
+ lifetime_thread_.reset (new boost::thread (
62
+ boost::bind (&boost::asio::io_service::run, &service_)));
62
63
}
63
64
64
65
~async_client () throw () {
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class BOOST_URI_DECL uri {
87
87
88
88
void swap (uri &other) {
89
89
boost::swap (uri_, other.uri_ );
90
- boost::swap (uri_parts_, other.uri_parts_ );
90
+ other.parse ( );
91
91
boost::swap (is_valid_, other.is_valid_ );
92
92
}
93
93
You can’t perform that action at this time.
0 commit comments