From dc3076af72a0b1665143795d954e9d97582a5b35 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 7 Jun 2012 11:31:12 +0300 Subject: [PATCH] obexd: Fix not using connection passed to obc_transfer_register Make use of the connection parameter instead of assuming the connection will always be to the session bus. --- obexd/client/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c index 000a51048..be61f404d 100644 --- a/obexd/client/transfer.c +++ b/obexd/client/transfer.c @@ -309,7 +309,7 @@ gboolean obc_transfer_register(struct obc_transfer *transfer, transfer->path = g_strdup_printf("%s/transfer%ju", TRANSFER_BASEPATH, counter++); - transfer->conn = dbus_bus_get(DBUS_BUS_SESSION, NULL); + transfer->conn = dbus_connection_ref(conn); if (transfer->conn == NULL) { g_set_error(err, OBC_TRANSFER_ERROR, -EFAULT, "Unable to connect to D-Bus"); -- 2.47.3