aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-remote-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-remote-store.c')
-rw-r--r--camel/camel-remote-store.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c
index 41e16a27fc..991e5b0e1a 100644
--- a/camel/camel-remote-store.c
+++ b/camel/camel-remote-store.c
@@ -635,9 +635,7 @@ camel_remote_store_refresh_folders (CamelRemoteStore *store, CamelException *ex)
gboolean
camel_remote_store_connected (CamelRemoteStore *store, CamelException *ex)
{
- if (store->istream == NULL) {
- camel_service_connect (CAMEL_SERVICE (store), ex);
- return !camel_exception_is_set (ex);
- }
+ if (store->istream == NULL)
+ return camel_service_connect (CAMEL_SERVICE (store), ex);
return TRUE;
}