[evolution-data-server] Bug #615828 - Incorrectly set off-line state on CamelOfflineStore



commit 6b3031f6c2e2c617b20a85090c214fced5e81dce
Author: Milan Crha <mcrha redhat com>
Date:   Thu Sep 30 14:06:03 2010 +0200

    Bug #615828 - Incorrectly set off-line state on CamelOfflineStore

 camel/camel-offline-store.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-offline-store.c b/camel/camel-offline-store.c
index b4cb6b2..a93377a 100644
--- a/camel/camel-offline-store.c
+++ b/camel/camel-offline-store.c
@@ -155,13 +155,14 @@ camel_offline_store_set_online_sync (CamelOfflineStore *store,
 		}
 
 		if (!camel_service_disconnect_sync (
-			CAMEL_SERVICE (store), network_available, error))
+			CAMEL_SERVICE (store), network_available, error)) {
+			store->priv->online = online;
 			return FALSE;
+		}
 	} else {
 		store->priv->online = online;
 		/* network unavailable -> network available */
 		if (!camel_service_connect_sync (CAMEL_SERVICE (store), error)) {
-			store->priv->online = FALSE;
 			return FALSE;
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]