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;