commit 1a7555f59e6207f6f81dee03f69954ecfce93708
parent 4d7a7a503767f22270d87846a20eb3e1bde4647e
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;