aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/multi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 620c08277..ad6bebca0 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -197,9 +197,13 @@ static void multistate(struct Curl_one_easy *easy, CURLMstate state)
"COMPLETED",
"CANCELLED"
};
- CURLMstate oldstate = easy->state;
long index = -1;
#endif
+ CURLMstate oldstate = easy->state;
+
+ if(oldstate == state)
+ /* don't bother when the new state is the same as the old state */
+ return;
easy->state = state;