]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Don't send an reply for driver messages if one isn't requested
authorColin Walters <walters@verbum.org>
Tue, 16 Mar 2010 17:20:36 +0000 (13:20 -0400)
committerColin Walters <walters@verbum.org>
Tue, 16 Mar 2010 20:44:30 +0000 (16:44 -0400)
Basically honor the no_reply flag; a binding is likely to want to
set this so it doesn't have to process extra traffic for match
rules.

bus/driver.c

index 4a6a3243539402d91fc1acefdae35f01ad9cc38a..5e8a7a266b08b7aeff8430020ace0c6d23773c1d 100644 (file)
@@ -32,6 +32,7 @@
 #include "utils.h"
 #include <dbus/dbus-string.h>
 #include <dbus/dbus-internals.h>
+#include <dbus/dbus-message.h>
 #include <dbus/dbus-marshal-recursive.h>
 #include <string.h>
 
@@ -791,6 +792,9 @@ send_ack_reply (DBusConnection *connection,
 {
   DBusMessage *reply;
 
+  if (dbus_message_get_no_reply (message))
+    return TRUE;
+
   reply = dbus_message_new_method_return (message);
   if (reply == NULL)
     {