From dc2b47a7dcb72ad4a75e2f8f2b7bc05a885ae1ff Mon Sep 17 00:00:00 2001 From: Sapphire Date: Fri, 19 Jun 2026 05:00:37 -0500 Subject: [PATCH] Don't catch CancellationException in ComputedSkeletonBehaviour --- server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt b/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt index 03124025c..dc8d95ed1 100644 --- a/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt +++ b/server/core/src/main/java/dev/slimevr/skeleton/behaviours.kt @@ -4,6 +4,7 @@ import dev.slimevr.config.UserConfig import dev.slimevr.util.safeLaunch import io.github.axisangles.ktmath.Quaternion import io.github.axisangles.ktmath.Vector3 +import io.ktor.utils.io.CancellationException import kotlinx.coroutines.delay import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.launchIn @@ -126,6 +127,8 @@ class ComputedSkeletonBehaviour( .fold(targetState) { state, processor -> processor.process(state) } val rootHead = Vector3(0f, targetState.userHeight, 0f) // FIXME WRONG receiver.computed.value = buildBones(processed, rootHead = rootHead) + } catch (e: CancellationException) { + throw e } catch (e: Exception) { dev.slimevr.AppLogger.coroutines.error(e, "Error in ComputedSkeletonBehaviour") }