Debug HttpClient...

This commit is contained in:
an-tao 2018-07-24 17:37:15 +08:00
parent 8f2fefb8e8
commit a3ace50a30

View File

@ -65,7 +65,7 @@ void HttpClientImpl::sendRequestInLoop(const drogon::HttpRequestPtr &req, const
{
//send request;
auto connPtr=_tcpClient->connection();
if(connPtr->connected())
if(connPtr&&connPtr->connected())
{
if(_reqAndCallbacks.empty())
{