diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-10-07 21:04:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-10-07 21:04:57 +0000 |
commit | 1128029599b1c7e65bf304a3d8bcf2e6aadce72a (patch) | |
tree | c56f0787bae0bbe03244d25cbbc2b150bcad24fe | |
parent | befc30bc55cebe958d652ec4f5d31aa8565773c1 (diff) |
don't display or act on state changes that doesn't actually change state
-rw-r--r-- | lib/multi.c | 6 |
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; |