[anjuta/sdb-queries] symbol-db: Fixed async error handling, prevents dangling idle loop



commit 12fa938e6958815b4b9d7b88c73e2beccd7f4d03
Author: Naba Kumar <naba gnome org>
Date:   Thu Jun 17 23:51:04 2010 +0300

    symbol-db: Fixed async error handling, prevents dangling idle loop

 plugins/symbol-db/symbol-db-query.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-query.c b/plugins/symbol-db/symbol-db-query.c
index 47e7a6e..f9dfc2e 100644
--- a/plugins/symbol-db/symbol-db-query.c
+++ b/plugins/symbol-db/symbol-db-query.c
@@ -496,7 +496,7 @@ sdb_query_execute_real (SymbolDBQuery *query)
 
 	if (!symbol_db_engine_is_connected (priv->dbe_selected) ||
 	    symbol_db_engine_is_scanning (priv->dbe_selected))
-		return NULL;
+		return GINT_TO_POINTER (-1);
 	
 	if (!priv->sql_stmt)
 		sdb_query_update (query);



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