diff options
author | Simon McVittie <smcv@collabora.com> | 2017-06-22 17:58:42 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-12-11 16:01:22 +0000 |
commit | 3ee319aaf3dd2055bdf8bffb0c6e819d24452b8e (patch) | |
tree | 767c4cac3f7b082633f792a8b9cf52f03c85b031 | |
parent | f9e028ddf9cdadf9eb44f76b3d64ca265cd5637a (diff) |
bus/containers: Set up new connections to join the bus
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354
-rw-r--r-- | bus/containers.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bus/containers.c b/bus/containers.c index a59226b7..5bb8fc6a 100644 --- a/bus/containers.c +++ b/bus/containers.c @@ -289,7 +289,11 @@ new_connection_cb (DBusServer *server, DBusConnection *new_connection, void *data) { - /* TODO: handle new connection */ + BusContainerInstance *instance = data; + + /* If this fails it logs a warning, so we don't need to do that */ + if (!bus_context_add_incoming_connection (instance->context, new_connection)) + return; } static const char * |