Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'no-reply' into 'master'
Silence "Rejected send message" D-Bus errors 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. But it does cover the most common use case, i.e. a normal D-Bus call that has no reply. See merge request !1
- 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