if (error) {
ERR("Agent registration failed: errCode[%x], message[%s]",
error->code, error->message);
- }
- if (error->code == AGENT_ALREADY_EXIST) {
- DBG("Agent is already registered");
- g_clear_error(&error);
- } else {
- g_clear_error(&error);
- g_object_unref(agent_manager);
- priv->agent_manager = NULL;
- return FALSE;
+ if (error->code == AGENT_ALREADY_EXIST) {
+ DBG("Agent is already registered");
+ g_clear_error(&error);
+ } else {
+ g_clear_error(&error);
+ g_object_unref(agent_manager);
+ priv->agent_manager = NULL;
+ return FALSE;
+ }
}
}
g_variant_unref(reply);