From 1128029599b1c7e65bf304a3d8bcf2e6aadce72a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 7 Oct 2006 21:04:57 +0000 Subject: don't display or act on state changes that doesn't actually change state --- lib/multi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/multi.c') 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; -- cgit v1.2.3