--- tools/mpris-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mpris-proxy.c b/tools/mpris-proxy.c index 91a25501d..3779b6887 100644 --- a/tools/mpris-proxy.c +++ b/tools/mpris-proxy.c @@ -1978,7 +1978,7 @@ static void register_player(GDBusProxy *proxy) player->conn = g_dbus_setup_private(DBUS_BUS_SESSION, player->bus_name, NULL); - if (!session) { + if (!player->conn) { fprintf(stderr, "Could not register bus name %s", player->bus_name); goto fail; -- 2.25.1