Fix confusing debug output
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 28 Aug 2018 10:10:18 +0000 (12:10 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 28 Aug 2018 10:10:18 +0000 (12:10 +0200)
* src/windowmessages.cpp (delayed_invalidate_ui): Print
waiting before sleep, not after.

src/windowmessages.cpp

index e3dfd45..e9ec1e5 100644 (file)
@@ -460,15 +460,14 @@ delayed_invalidate_ui (LPVOID minsleep)
   int i = 0;
   while (invalidation_blocked)
     {
-      Sleep (100);
       i++;
-
       if (i % 10 == 0)
         {
           log_debug ("%s:%s: Waiting for invalidation.",
                      SRCNAME, __func__);
         }
 
+      Sleep (100);
       /* Do we need an abort statement here? */
     }
   do_in_ui_thread (INVALIDATE_UI, nullptr);