[evolution-data-server/gnome-3-6] Bug #688926 - SIGABRT on call_old_file_Sync



commit db3dac45d6815bd7048a317da28c42065fb745ba
Author: Daniele Rondina <geaaru gmail com>
Date:   Fri Nov 23 14:09:11 2012 +0100

    Bug #688926 - SIGABRT on call_old_file_Sync

 camel/camel-db.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-db.c b/camel/camel-db.c
index 3ca8b29..7e8501f 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -117,6 +117,13 @@ sync_push_request (CamelSqlite3File *cFile,
 
 	g_static_rec_mutex_lock (&cFile->sync_mutex);
 
+	if (!cFile->flags) {
+		/* nothing to sync, might be when xClose is called
+		   without any pending xSync request */
+		g_static_rec_mutex_unlock (&cFile->sync_mutex);
+		return;
+	}
+
 	if (wait_for_finish) {
 		done = g_slice_new (SyncDone);
 		done->cond = g_cond_new ();



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