don't display or act on state changes that doesn't actually change state
authorDaniel Stenberg <daniel@haxx.se>
Sat, 7 Oct 2006 21:04:57 +0000 (21:04 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 7 Oct 2006 21:04:57 +0000 (21:04 +0000)
lib/multi.c

index 620c082..ad6bebc 100644 (file)
@@ -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;