summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-16 08:19:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-16 11:11:16 +0100
commitd12b98dc8e506a5ad843c3519e815f8a698a3b90 (patch)
tree321d81ccf1211188db23f764536c0a4b1ccbddef /lib/easy.c
parentcfff12a0b3d8696e5923064ea4e35e14a4f78da0 (diff)
downloadcurl-bagder/multi-state-names.tar.gz
multi: rename the multi transfer statesbagder/multi-state-names
While working on documenting the states it dawned on me that step one is to use better descriptive names on the states. This also changes prefix on them to generally make them shorter in the source. State names NOT ending with *ing are transitional ones.
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c
index fd4123bed..921da4d0b 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -1034,8 +1034,8 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int action)
/* Unpause parts in active mime tree. */
if((k->keepon & ~newstate & KEEP_SEND_PAUSE) &&
- (data->mstate == CURLM_STATE_PERFORM ||
- data->mstate == CURLM_STATE_TOOFAST) &&
+ (data->mstate == MSTATE_PERFORMING ||
+ data->mstate == MSTATE_RATELIMITING) &&
data->state.fread_func == (curl_read_callback) Curl_mime_read) {
Curl_mime_unpause(data->state.in);
}