aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-16 03:07:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-16 03:07:08 +0800
commitc1ce3633db69de57b4a589587627fa088f9a3e5f (patch)
tree9ffab2663efc9f37a378039efc016a818412a44d /camel
parent1fef55b2d38c2e26a1c0b8b6f9f3a05e194910d9 (diff)
downloadgsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.tar
gsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.tar.gz
gsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.tar.bz2
gsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.tar.lz
gsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.tar.xz
gsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.tar.zst
gsoc2013-evolution-c1ce3633db69de57b4a589587627fa088f9a3e5f.zip
Only reconnect if we are already connected, if we are in a disconnected
2002-05-15 Jeffrey Stedfast <fejj@ximian.com> * camel-service.c (service_setv): Only reconnect if we are already connected, if we are in a disconnected state then no need to reconnect. svn path=/trunk/; revision=16924
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-service.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 61ea104bea..bb7682491e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2002-05-15 Jeffrey Stedfast <fejj@ximian.com>
+ * camel-service.c (service_setv): Only reconnect if we are already
+ connected, if we are in a disconnected state then no need to
+ reconnect.
+
* providers/imap/camel-imap-folder.c (get_content): If the
part_spec is an empty string for a leaft part, use "1" since we
don't actually want to get the raw message headers too.
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);