aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-31 05:55:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-31 05:55:01 +0800
commit81407e740577c28490e2b7a74cddd8eb8b83cbb3 (patch)
tree0ac5d470c929143fe2e8b188ddaf46849d035de4 /mail/component-factory.c
parent8d09d113e3090c79ff8f926d8ed48c531c9d6f24 (diff)
downloadgsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.tar
gsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.tar.gz
gsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.tar.bz2
gsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.tar.lz
gsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.tar.xz
gsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.tar.zst
gsoc2013-evolution-81407e740577c28490e2b7a74cddd8eb8b83cbb3.zip
Noop if we are in offline mode.
2002-05-30 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (mail_send_receive): Noop if we are in offline mode. * component-factory.c (mail_remove_storage): If the store is not in the storage hash, then it must not have ever been added. Fixes bug #25456. svn path=/trunk/; revision=17052
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 07f39faca5..7de338cb95 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -1382,10 +1382,8 @@ mail_lookup_storage (CamelStore *store)
static void
store_disconnect(CamelStore *store, void *event_data, void *data)
{
- if (store) {
- camel_service_disconnect (CAMEL_SERVICE (store), TRUE, NULL);
- camel_object_unref (CAMEL_OBJECT (store));
- }
+ camel_service_disconnect (CAMEL_SERVICE (store), TRUE, NULL);
+ camel_object_unref (CAMEL_OBJECT (store));
}
void
@@ -1402,6 +1400,9 @@ mail_remove_storage (CamelStore *store)
*/
storage = g_hash_table_lookup (storages_hash, store);
+ if (!storage)
+ return;
+
g_hash_table_remove (storages_hash, store);
/* so i guess potentially we could have a race, add a store while one