summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-28 13:02:20 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-28 13:02:20 +0000
commitd127e982b8136274c8abb6856b30a004d6c2cd34 (patch)
treeedfc639afeae3e45a939116e0b9bdb1e5062bc6e /src
parent36c0bad1fa4d61860a9cb4688759a49fa22cde67 (diff)
downloadmandi-d127e982b8136274c8abb6856b30a004d6c2cd34.tar
mandi-d127e982b8136274c8abb6856b30a004d6c2cd34.tar.gz
mandi-d127e982b8136274c8abb6856b30a004d6c2cd34.tar.bz2
mandi-d127e982b8136274c8abb6856b30a004d6c2cd34.tar.xz
mandi-d127e982b8136274c8abb6856b30a004d6c2cd34.zip
fix D-Bus message order for blacklist notification
Diffstat (limited to 'src')
-rw-r--r--src/plugins/ifw/ifw_dbus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/ifw/ifw_dbus.c b/src/plugins/ifw/ifw_dbus.c
index 82b2675..caf6753 100644
--- a/src/plugins/ifw/ifw_dbus.c
+++ b/src/plugins/ifw/ifw_dbus.c
@@ -286,6 +286,11 @@ DBusHandlerResult ifw_dbus_set_blacklist_verdict(DBusConnection *connection, DBu
}
dbus_error_free (&error);
+ reply = dbus_message_new_method_return(message);
+ dbus_connection_send(connection, reply, NULL);
+ dbus_connection_flush(connection);
+ dbus_message_unref(reply);
+
report = report_list_find_seq(&ifw->reports, seq);
if (report) {
ifw_dbus_apply_report_verdict(connection, ifw, report, do_blacklist);
@@ -296,11 +301,6 @@ DBusHandlerResult ifw_dbus_set_blacklist_verdict(DBusConnection *connection, DBu
black_list_print(&ifw->blacklist);
report_list_print(&ifw->reports);
- reply = dbus_message_new_method_return(message);
- dbus_connection_send(connection, reply, NULL);
- dbus_connection_flush(connection);
- dbus_message_unref(reply);
-
return DBUS_HANDLER_RESULT_HANDLED;
}