From 8750da085582070a70eed18205ea17f1bd9ba9d3 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Sat, 5 Dec 2026 17:54:31 -0500 Subject: [PATCH] Always send bone routing settings as a workaround for race --- .../src/main/java/dev/slimevr/solarxr/rpc/bone-routing.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/core/src/main/java/dev/slimevr/solarxr/rpc/bone-routing.kt b/server/core/src/main/java/dev/slimevr/solarxr/rpc/bone-routing.kt index 6e4f3af13..9714f79a2 100644 --- a/server/core/src/main/java/dev/slimevr/solarxr/rpc/bone-routing.kt +++ b/server/core/src/main/java/dev/slimevr/solarxr/rpc/bone-routing.kt @@ -68,11 +68,14 @@ class BoneRoutingBehaviour( ).distinctUntilChanged() receiver.onRpc { _, txId -> + // TODO: is .first() right here? It seems to return a very outdated value. + // This causes issues in the driver where, on some launches, trackers will + // simply not show up if they were all connected prior to launching SteamVR receiver.sendRpc(responses.first(), txId) }.launchIn(receiver.context.scope) responses - .drop(1) +// .drop(1) // FIXME: Commented out as a workaround for the mentioned bug .onEach(receiver::sendRpc) .launchIn(receiver.context.scope)