diff --git a/lib/multi.c b/lib/multi.c index 620c08277a2998188406cca523e448c57e6b006f..ad6bebca0f52683fa344a04c5304f5cadad5ac16 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;