aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2013-01-14 22:34:51 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-14 22:34:51 +0000
commit283805237a9f5f194568667fc32586a3238cbde0 (patch)
treedbca977328e72699eb8ae019e7cc92b5396fc3ab /src
parentefl/efreet: better printing of test results (diff)
downloadefl-283805237a9f5f194568667fc32586a3238cbde0.tar.gz
edbus: Dont call dispatch_name_owner_change() if we get a error message
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 82784
Diffstat (limited to 'src')
-rw-r--r--src/lib/edbus/edbus_core.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/edbus/edbus_core.c b/src/lib/edbus/edbus_core.c
index af3742c238..1767bd5441 100644
--- a/src/lib/edbus/edbus_core.c
+++ b/src/lib/edbus/edbus_core.c
@@ -188,6 +188,7 @@ print_live_connection(EDBus_Connection *conn)
EAPI int
edbus_shutdown(void)
{
+fprintf(stderr, "SHUTDOWN");
if (_edbus_init_count <= 0)
{
ERR("Init count not greater than 0 in shutdown.");
@@ -436,9 +437,15 @@ on_get_name_owner(void *data, const EDBus_Message *msg, EDBus_Pending *pending E
EDBus_Connection_Name *cn = data;
if (edbus_message_error_get(msg, NULL, NULL))
- DBG("GetNameOwner returned an error");
+ {
+ DBG("GetNameOwner returned an error");
+ return;
+ }
else if (!edbus_message_arguments_get(msg, "s", &unique_id))
- ERR("Error getting arguments from GetNameOwner");
+ {
+ ERR("Error getting arguments from GetNameOwner");
+ return;
+ }
cn->unique_id = eina_stringshare_add(unique_id);
edbus_dispatch_name_owner_change(cn, NULL);