[Commits] [SCM] claws branch, master, updated. 3.17.0-12-gf6016ef

Colin colin at claws-mail.org
Thu Aug 23 10:52:49 CEST 2018


The branch, master has been updated
       via  f6016ef46503a7bac437a3f2ada7d9d0cde60edc (commit)
      from  bf1a86dad0d53887db2b4bcb4f5a9dbd1651f607 (commit)

Summary of changes:
 src/matcher.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit f6016ef46503a7bac437a3f2ada7d9d0cde60edc
Author: Colin Leroy <colin at colino.net>
Date:   Thu Aug 23 10:51:52 2018 +0200

    Only handle GTK events when matcher test thread takes more than 0 seconds.

diff --git a/src/matcher.c b/src/matcher.c
index ab42c75..a0d8ab7 100644
--- 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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list