aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r--camel/camel-service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c
index c704852a7c..e8059e460f 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -213,7 +213,8 @@ service_setv (CamelObject *object, CamelException *ex, CamelArgV *args)
camel_argv_ignore (args, i);
}
- if (reconnect) {
+ /* FIXME: what if we are in the process of connecting? */
+ if (reconnect && service->status == CAMEL_SERVICE_CONNECTED) {
/* reconnect the service using the new URL */
if (camel_service_disconnect (service, TRUE, ex))
camel_service_connect (service, ex);