From: Sergio Villar Senin Date: Mon, 17 Aug 2009 16:01:20 +0000 (+0200) Subject: These last two patches fix NB#127203, IMAP traffic ongoing when automatic updates... X-Git-Tag: 3.0.17-rc35~2 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=23a175eefb5368eefca27d25bfab6589590bffc7 These last two patches fix NB#127203, IMAP traffic ongoing when automatic updates are disabled Initialize the session just after setting up the accounts --- diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 477ed1d..444f069 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -965,6 +965,9 @@ modest_tny_account_store_new (ModestAccountMgr *account_mgr, add_mmc_account (MODEST_TNY_ACCOUNT_STORE (obj), FALSE /* don't emit the insert signal. */); } + /* Initialize session */ + tny_session_camel_set_initialized (priv->session); + return MODEST_TNY_ACCOUNT_STORE(obj); } @@ -994,9 +997,6 @@ modest_tny_account_store_get_accounts (TnyAccountStore *self, default: g_return_if_reached (); } - - /* Initialize session. Why do we need this ??? */ - tny_session_camel_set_initialized (priv->session); }