break;
case INST_REQUEST_TO_DEACTIVATE:
case INST_ACTIVATED:
- default:
instance_broadcast_deleted_event(inst);
instance_deactivated(inst);
instance_destroy(inst);
break;
+ case INST_DEACTIVATED:
+ case INST_DESTROY:
+ case INST_DESTROYED:
+ default:
+ DbgPrint("Package is already destroyed: %s\n",
+ package_name(instance_package(inst)));
+ break;
}
}
} else {
char *filename;
char *cmd;
+ cmd = packet->cmd ? packet->cmd : "";
+
if (err) {
- ErrPrint("Error: %s\n", err->message);
+ ErrPrint("package[%s], cmd[%s]: %s\n", packet->pkgname, cmd, err->message);
g_error_free(err);
}
if (packet->ret_cb)
- packet->ret_cb(packet->slave, packet->cmd, NULL, packet->cbdata);
+ packet->ret_cb(packet->slave, cmd, NULL, packet->cbdata);
if (!fault_is_occured() && packet->pkgname) {
/*!
* To fix that case, mark the fault again from here.
*/
filename = packet->filename ? packet->filename : "";
- cmd = packet->cmd ? packet->cmd : "";
fault_func_call(packet->slave, packet->pkgname, filename, cmd);
}
result = g_dbus_proxy_call_sync(rpc->proxy, cmd, param,
G_DBUS_CALL_FLAGS_NO_AUTO_START, -1, NULL, &err);
if (!result) {
+ cmd = cmd ? cmd : "";
+
if (err) {
- ErrPrint("Error: %s\n", err->message);
+ ErrPrint("Package[%s], cmd[%s]: %s\n", pkgname, cmd, err->message);
g_error_free(err);
}
* To fix that case, mark the fault again from here.
*/
filename = filename ? filename : "";
- cmd = cmd ? cmd : "";
fault_func_call(slave, pkgname, filename, cmd);
}