diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-11-16 04:15:43 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-11-16 04:15:43 +0800 |
commit | d4db79eeccaea372e8d31c29a572cb143f60f37d (patch) | |
tree | ac14355423bdae2456f026ef53c571e45b5b2e07 /camel/providers/imap | |
parent | cd2a27e637abb0db3ae8f357ffbea13f71209735 (diff) | |
download | gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.tar gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.tar.gz gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.tar.bz2 gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.tar.lz gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.tar.xz gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.tar.zst gsoc2013-evolution-d4db79eeccaea372e8d31c29a572cb143f60f37d.zip |
In the fallback cases, clear the exception first.
2004-11-15 Jeffrey Stedfast <fejj@novell.com>
* providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
In the fallback cases, clear the exception first.
* providers/imap/camel-imap-store.c (connect_to_server_wrapper):
In the fallback cases, clear the exception first.
* providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
In the fallback cases, clear the exception first.
svn path=/trunk/; revision=27928
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 067221571a..eb66f48725 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -919,10 +919,13 @@ connect_to_server_wrapper (CamelService *service, CamelException *ex) if (ai == NULL) return FALSE; - if (!(ret = connect_to_server (service, ai, mode, ex)) && mode == MODE_SSL) + if (!(ret = connect_to_server (service, ai, mode, ex)) && mode == MODE_SSL) { + camel_exception_clear (ex); ret = connect_to_server (service, ai, MODE_TLS, ex); - else if (!ret && mode == MODE_TLS) + } else if (!ret && mode == MODE_TLS) { + camel_exception_clear (ex); ret = connect_to_server (service, ai, MODE_CLEAR, ex); + } camel_freeaddrinfo (ai); |