Skip to content
Snippets Groups Projects
Commit 688699a0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

no need to access it with conn->data since data is already a local variable

holding the conn->data value
parent 090f5a9a
No related branches found
No related tags found
No related merge requests found
......@@ -1677,8 +1677,8 @@ Transfer(struct connectdata *conn)
/* limit-rate logic: if speed exceeds threshold, then do not include fd in
select set */
if ( (conn->data->set.max_send_speed > 0) &&
(conn->data->progress.ulspeed > conn->data->set.max_send_speed) ) {
if ( (data->set.max_send_speed > 0) &&
(data->progress.ulspeed > data->set.max_send_speed) ) {
fd_write = CURL_SOCKET_BAD;
Curl_pgrsUpdate(conn);
}
......@@ -1689,8 +1689,8 @@ Transfer(struct connectdata *conn)
fd_write = CURL_SOCKET_BAD;
}
if ( (conn->data->set.max_recv_speed > 0) &&
(conn->data->progress.dlspeed > conn->data->set.max_recv_speed) ) {
if ( (data->set.max_recv_speed > 0) &&
(data->progress.dlspeed > data->set.max_recv_speed) ) {
fd_read = CURL_SOCKET_BAD;
Curl_pgrsUpdate(conn);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment