warning fix (unused variable ‘curl’)

This commit is contained in:
2019-06-26 18:01:23 +07:00
parent 758a342168
commit 49fc17df30

View File

@@ -811,9 +811,9 @@ namespace curly_hpp
}
const auto now = time_point_t::clock::now();
for ( const auto& [curl, sreq] : handles ) {
if ( sreq->check_response_timeout(now) ) {
sreq->fail(CURLE_OPERATION_TIMEDOUT);
for ( const auto& iter_p : handles ) {
if ( iter_p.second->check_response_timeout(now) ) {
iter_p.second->fail(CURLE_OPERATION_TIMEDOUT);
}
}