[Commits] [SCM] claws branch, master, updated. 3.16.0-243-g67583f3

ticho at claws-mail.org ticho at claws-mail.org
Sun Jul 22 18:56:14 CEST 2018


The branch, master has been updated
       via  67583f39b58f302959d215a48734a5167f7c50ef (commit)
      from  2af61e1324d616b7039e95ef0a220998c69df487 (commit)

Summary of changes:
 src/account.c |    3 +++
 src/inc.c     |    1 +
 2 files changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit 67583f39b58f302959d215a48734a5167f7c50ef
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Jul 22 18:55:18 2018 +0200

    When deleting an account, cancel its autocheck timer.

diff --git a/src/account.c b/src/account.c
index aa626ad..6fb22b6 100644
--- a/src/account.c
+++ b/src/account.c
@@ -1137,6 +1137,9 @@ static void account_delete(GtkWidget *widget, gpointer data)
 		folder_destroy(FOLDER(ac_prefs->folder));
 		folderview_set_all();
 	}
+
+	inc_account_autocheck_timer_remove(ac_prefs);
+
 	account_destroy(ac_prefs);
 	account_list_view_set();
 
diff --git a/src/inc.c b/src/inc.c
index 473e11e..d7a4fc5 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -1567,6 +1567,7 @@ void inc_account_autocheck_timer_remove(PrefsAccount *account)
 	cm_return_if_fail(account != NULL);
 
 	if (account->autocheck_timer != 0) {
+		g_source_remove(account->autocheck_timer);
 		debug_print("INC: account %d: removed inc timer %d\n", account->account_id,
 				account->autocheck_timer);
 		account->autocheck_timer = 0;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list