Call Process::waitFor interruptibly for bindings provider

This commit is contained in:
Sapphire committed 2026-09-16 16:44:33 -05:00
1 parent 099f54f4ba
commit 706dfd6dce
1 file changed
+2 -1
@@ -14,6 +14,7 @@ import io.ktor.http.HttpMethod
import io.ktor.http.isSuccess
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.runInterruptible
import kotlinx.coroutines.withContext
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@@ -152,7 +153,7 @@ suspend fun startBindingsProvider() = withContext(Dispatchers.IO) {
return@withContext
}
AppLogger.steamvr.info("Started bindings provider (PID ${proc.pid()})")
proc.waitFor()
runInterruptible { proc.waitFor() }
AppLogger.steamvr.info("Bindings provider exited with code ${proc.exitValue()}")
}