Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[glib] Silence "Rejected send message" D-Bus errors. Fixes JB#33651
This doesn't cover all the cases. For example, it doesn't cover org.freedesktop.DBus.Introspectable.Introspect calls that don't expect a reply; this is possible even though it doesn't make any practical sense.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/gio/gdbusmethodinvocation.c b/gio/gdbusmethodinvocation.c | ||
index c6cab91..26c04ee 100644 | ||
--- a/gio/gdbusmethodinvocation.c | ||
+++ b/gio/gdbusmethodinvocation.c | ||
@@ -479,6 +479,9 @@ g_dbus_method_invocation_return_value_internal (GDBusMethodInvocation *invocatio | ||
g_assert_not_reached (); | ||
} | ||
|
||
+ if (g_dbus_message_get_flags (invocation->message) & G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED) | ||
+ goto out; | ||
+ | ||
if (G_UNLIKELY (_g_dbus_debug_return ())) | ||
{ | ||
_g_dbus_debug_print_lock (); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters