[evolution-data-server] Bug #688926 - SIGABRT on call_old_file_Sync



commit 14f262d8e32af5d823660914ce49fd6f051d6a92
Author: Daniele Rondina <geaaru gmail com>
Date:   Fri Nov 23 14:07:51 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 1d55884..779766b 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -117,6 +117,13 @@ sync_push_request (CamelSqlite3File *cFile,
 
 	g_rec_mutex_lock (&cFile->sync_mutex);
 
+	if (!cFile->flags) {
+		/* nothing to sync, might be when xClose is called
+		   without any pending xSync request */
+		g_rec_mutex_unlock (&cFile->sync_mutex);
+		return;
+	}
+
 	if (wait_for_finish) {
 		done = g_slice_new (SyncDone);
 		g_cond_init (&done->cond);



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