X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account-store.c;h=e0cd50b751bcb1fc9bc7055110b43968ce6223e4;hp=34af16e7b2be70efee1d7fb393fbf2eb47b4836e;hb=54d35f158a8ffa5a3bc4c13aeceff3b61070afab;hpb=bb8156139577cf2cd89a517c6d23583569139884 diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 34af16e..e0cd50b 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -1643,6 +1643,9 @@ on_account_disconnect_when_removing (TnyCamelAccount *account, /* Unref the extra reference added by get_server_account */ g_object_unref (account); + /* Cancel all pending operations */ + tny_account_cancel (TNY_ACCOUNT (account)); + /* Clear the cache if it's an store account */ if (TNY_IS_STORE_ACCOUNT (account)) tny_store_account_delete_cache (TNY_STORE_ACCOUNT (account));