[evolution-exchange/gnome-2-28] Bug #603836 - Crash at startup after re-enabling exchange account
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-exchange/gnome-2-28] Bug #603836 - Crash at startup after re-enabling exchange account
- Date: Thu, 14 Jan 2010 10:29:39 +0000 (UTC)
commit 09caf931e7905d9aaa2106d67b5f7b69687aa9c3
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 14 11:28:15 2010 +0100
Bug #603836 - Crash at startup after re-enabling exchange account
Workaround for crashing evolution-exchange process for some reason.
camel/camel-exchange-store.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-exchange-store.c b/camel/camel-exchange-store.c
index a6bc9b8..66fe9bd 100644
--- a/camel/camel-exchange-store.c
+++ b/camel/camel-exchange-store.c
@@ -732,6 +732,15 @@ exchange_get_folder_info (CamelStore *store, const gchar *top, guint32 flags, Ca
RETURN_VAL_IF_NOT_CONNECTED (exch, ex, NULL);
+ if (!exch->stub || !exch->stub->cmd) {
+ /* it means the stub process stopped/crashed meanwhile,
+ which is quite unlikely, but can happen. */
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
+ _("Could not connect to %s: Please restart Evolution"),
+ _("Evolution Exchange backend process"));
+ return NULL;
+ }
+
if (camel_stub_marshal_eof (exch->stub->cmd))
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]