commit f6016ef46503a7bac437a3f2ada7d9d0cde60edc
parent bf1a86dad0d53887db2b4bcb4f5a9dbd1651f607
Author: Colin Leroy <colin@colino.net>
Date: Thu, 23 Aug 2018 10:51:52 +0200
Only handle GTK events when matcher test thread takes more than 0 seconds.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/matcher.c b/src/matcher.c
@@ -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;