diff --git a/client_http.hpp b/client_http.hpp index 0b2d7ef..8d5db7a 100644 --- a/client_http.hpp +++ b/client_http.hpp @@ -248,7 +248,7 @@ namespace SimpleWeb { if(timer) timer->cancel(); if(ec) { - socket=nullptr; + this->socket=nullptr; throw boost::system::system_error(ec); } }); @@ -313,7 +313,7 @@ namespace SimpleWeb { post_process(); } else { - socket=nullptr; + this->socket=nullptr; throw boost::system::system_error(ec); } }); @@ -353,10 +353,10 @@ namespace SimpleWeb { (const boost::system::error_code &ec, boost::asio::ip::tcp::resolver::iterator /*it*/){ if(!ec) { boost::asio::ip::tcp::no_delay option(true); - socket->set_option(option); + this->socket->set_option(option); } else { - socket=nullptr; + this->socket=nullptr; throw boost::system::system_error(ec); } }); diff --git a/client_https.hpp b/client_https.hpp index 02c82ac..96944cf 100644 --- a/client_https.hpp +++ b/client_https.hpp @@ -46,21 +46,21 @@ namespace SimpleWeb { (const boost::system::error_code &ec, boost::asio::ip::tcp::resolver::iterator /*it*/){ if(!ec) { boost::asio::ip::tcp::no_delay option(true); - socket->lowest_layer().set_option(option); + this->socket->lowest_layer().set_option(option); auto timer=get_timeout_timer(); - socket->async_handshake(boost::asio::ssl::stream_base::client, - [this, timer](const boost::system::error_code& ec) { + this->socket->async_handshake(boost::asio::ssl::stream_base::client, + [this, timer](const boost::system::error_code& ec) { if(timer) timer->cancel(); if(ec) { - socket=nullptr; + this->socket=nullptr; throw boost::system::system_error(ec); } }); } else { - socket=nullptr; + this->socket=nullptr; throw boost::system::system_error(ec); } });