aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-02 01:32:42 +0800
committerDan Winship <danw@src.gnome.org>2000-12-02 01:32:42 +0800
commitdfee15e65ac56a20ae8841ed8410ba8ee9a505ca (patch)
treeaa2e3153c43232557e5d6e04a4df89111bf25c9b /camel/camel-service.c
parent4008cef734d96607948f029dddf47f9311adfb8d (diff)
downloadgsoc2013-evolution-dfee15e65ac56a20ae8841ed8410ba8ee9a505ca.tar.gz
gsoc2013-evolution-dfee15e65ac56a20ae8841ed8410ba8ee9a505ca.tar.zst
gsoc2013-evolution-dfee15e65ac56a20ae8841ed8410ba8ee9a505ca.zip
Don't g_return_if_fail if the service is already disconnected. Just
* camel-service.c (camel_service_disconnect): Don't g_return_if_fail if the service is already disconnected. Just return. * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Return FALSE (don't try again) if we get CAMEL_POP3_FAIL. (pop3_connect): If we don't succeed, disconnect. svn path=/trunk/; revision=6756
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r--camel/camel-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c
index ee2a5b5431..0fcb61fa52 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -259,7 +259,9 @@ camel_service_disconnect (CamelService *service, gboolean clean,
{
gboolean res;
- g_return_val_if_fail (service->connected, FALSE);
+ if (!service->connected)
+ return TRUE;
+
res = CSERV_CLASS (service)->disconnect (service, clean, ex);
service->connected = FALSE;
return res;