[evolution-exchange] Bug #687605(BNC) - Evolution hangs on moving email



commit 88917d87cc2b835455dfc8cdc3a6586e73ab6256
Author: Bharath Acharya <abharath novell com>
Date:   Mon Apr 25 11:20:02 2011 +0530

    Bug #687605(BNC) - Evolution hangs on moving email
    
    Handles the locks better. If there is any issue with refreshing that
    needs to be handled later.

 camel/camel-exchange-utils.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-exchange-utils.c b/camel/camel-exchange-utils.c
index e0b40a3..f9edc82 100644
--- a/camel/camel-exchange-utils.c
+++ b/camel/camel-exchange-utils.c
@@ -388,7 +388,11 @@ message_removed (ExchangeFolder *mfld, CamelFolder *folder, const gchar *href)
 		return;
 	}
 	index = find_message_index (mfld, mmsg->seq);
-	g_return_if_fail (index != -1);
+
+	if (index == -1) {
+		g_static_rec_mutex_unlock (&mfld->ed->changed_msgs_mutex);
+		return;
+	}
 
 	message_remove_at_index (mfld, folder, index);
 	g_static_rec_mutex_unlock (&mfld->ed->changed_msgs_mutex);



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