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
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user