summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-02-16 21:50:32 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-02-16 21:50:32 +0000
commit6cf6f82faae928a9142d4aa465b5add381960e29 (patch)
tree4275653da460d9f96639e7c246f82dd1c6e233a9 /bus
parentb2fce4c69b9fd75c54bb370e043ea166b83083f6 (diff)
2003-02-16 Anders Carlsson <andersca@codefactory.se>
* bus/dispatch.c: (send_one_message): Only send broadcast messages to registered connections. * dbus/dbus-message.c: (dbus_message_name_is): * dbus/dbus-message.h: New convenience function. * dbus/dbus-transport-debug.c: (do_reading): Only dispatch one message per run. * test/Makefile.am: * test/bus-test.c: (new_connection_callback), (die), (test_hello_client1_handler), (test_hello_client2_handler), (test_hello_replies), (main): * test/bus-test-loop.[ch]: Add these.
Diffstat (limited to 'bus')
-rw-r--r--bus/dispatch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bus/dispatch.c b/bus/dispatch.c
index 2ce26ae1..76e10a9f 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -33,6 +33,10 @@ static int message_handler_slot;
static void
send_one_message (DBusConnection *connection, void *data)
{
+ /* Only send messages to registered connections */
+ if (bus_connection_get_name (connection) == NULL)
+ return;
+
BUS_HANDLE_OOM (dbus_connection_send_message (connection, data, NULL, NULL));
}