From b5ec723e66d2073f0f66abe139f3e7c14776bd63 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Tue, 27 Mar 2012 11:37:31 -0400 Subject: server: don't send replies for events that don't request replies --- libdbusmenu-glib/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c index 524e777..a8e9214 100644 --- a/libdbusmenu-glib/server.c +++ b/libdbusmenu-glib/server.c @@ -1626,7 +1626,9 @@ bus_event (DbusmenuServer * server, GVariant * params, GDBusMethodInvocation * i g_timeout_add(0, event_local_handler, event_data); - g_dbus_method_invocation_return_value(invocation, NULL); + if (~g_dbus_message_get_flags (g_dbus_method_invocation_get_message (invocation)) & G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED) { + g_dbus_method_invocation_return_value(invocation, NULL); + } } return; -- cgit v1.2.3