summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
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));
}