mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 19:57:43 +08:00
Debug HttpClient...
This commit is contained in:
parent
8f2fefb8e8
commit
a3ace50a30
@ -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())
|
||||
{
|
||||
@ -124,4 +124,4 @@ void HttpClientImpl::onRecvMessage(const trantor::TcpConnectionPtr &connPtr,tran
|
||||
}
|
||||
context->reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user