aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 8258114585..bb6b0f9171 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -222,12 +222,13 @@ pop3_refresh_info (CamelFolder *folder, CamelException *ex)
if (pop3_store->supports_uidl == FALSE) {
uids = pop3_generate_uids (folder, count, ex);
-
camel_operation_end (NULL);
+ if (!uids || camel_exception_is_set (ex))
+ return;
} else {
data = camel_pop3_command_get_additional_data (pop3_store, 0, ex);
- camel_operation_end(NULL);
- if (camel_exception_is_set (ex))
+ camel_operation_end (NULL);
+ if (!data || camel_exception_is_set (ex))
return;
uids = parse_listing (count, data);