aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-06-03 19:30:52 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-06-03 19:30:52 +0800
commit74fb7cd73be2837f17529a631ebc1d79b23ea696 (patch)
treeba624a82262b18b30e8b7445a330b9cae60eca07 /camel
parentc691f3366efd43a8ea4a8cc442d75fe90848acdc (diff)
downloadgsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.tar
gsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.tar.gz
gsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.tar.bz2
gsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.tar.lz
gsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.tar.xz
gsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.tar.zst
gsoc2013-evolution-74fb7cd73be2837f17529a631ebc1d79b23ea696.zip
disconnect if we get an io error or user cancellation.
2004-06-03 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-store.c (camel_nntp_command): disconnect if we get an io error or user cancellation. svn path=/trunk/; revision=26166
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/nntp/camel-nntp-store.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a95bda954e..0bbc7e952b 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2004-06-03 Not Zed <NotZed@Ximian.com>
+ * providers/nntp/camel-nntp-store.c (camel_nntp_command):
+ disconnect if we get an io error or user cancellation.
+
* providers/nntp/camel-nntp-folder.c (nntp_folder_sync_online):
only save the summary, don't update from server, thats what
refresh info does.
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index a36a69634f..57894efc0c 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -1311,6 +1311,7 @@ camel_nntp_command (CamelNNTPStore *store, CamelException *ex, CamelNNTPFolder *
camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL);
continue;
case -1: /* i/o error */
+ camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL);
if (camel_exception_get_id(ex) == CAMEL_EXCEPTION_USER_CANCEL)
return -1;
camel_exception_clear(ex);