Only handle GTK events when matcher test thread takes more than 0 seconds.
[claws.git] / src / matcher.c
index ab42c75935594a260863397de93d95f8162c42a6..a0d8ab737db8928bf1cc01e024206296b782e944 100644 (file)
@@ -730,7 +730,9 @@ static gboolean matcherprop_match_test(const MatcherProp *prop,
                debug_print("waiting for test thread\n");
                while(!td->done) {
                        /* don't let the interface freeze while waiting */
-                       claws_do_idle();
+                       if (time(NULL) - start_time > 0) {
+                               claws_do_idle();
+                       }
                        if (time(NULL) - start_time > 30) {
                                pthread_cancel(pt);
                                td->done = TRUE;