diff options
author | Jeff Cai <jeff.cai@sun.com> | 2005-11-18 05:56:35 +0000 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-11-18 05:56:35 +0000 |
commit | 69825c54663238ee8564305c7bf0d4c3dc8464fb (patch) | |
tree | 39b515011cd97855543efe6fff366e7418f23275 | |
parent | 47414b15b509bf16bb1437223c6b5bce2d93e6da (diff) | |
download | evolution-data-server-69825c54663238ee8564305c7bf0d4c3dc8464fb.tar.gz |
If no diary is created, no need to do resync.
2005-11-18 Jeff Cai <jeff.cai@sun.com>
* camel-disco-store.c: (disco_connect):
If no diary is created, no need to do resync.
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-disco-store.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 6cb5acc44..443133540 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2005-11-18 Jeff Cai <jeff.cai@sun.com> + + * camel-disco-store.c: (disco_connect): + If no diary is created, no need to do resync. + 2005-10-28 Parthasarathi Susarla <sparthasarathi@novell.com> ** See bug #218177 diff --git a/camel/camel-disco-store.c b/camel/camel-disco-store.c index cee7ec6da..57babf457 100644 --- a/camel/camel-disco-store.c +++ b/camel/camel-disco-store.c @@ -159,6 +159,10 @@ disco_connect (CamelService *service, CamelException *ex) case CAMEL_DISCO_STORE_RESYNCING: if (!CDS_CLASS (service)->connect_online (service, ex)) return FALSE; + + if (!store->diary) + return TRUE; + d(printf(" diary is %s\n", camel_disco_diary_empty(store->diary)?"empty":"not empty")); if (camel_disco_diary_empty (store->diary)) return TRUE; |