Model pending video shutdown separately from an exception in service tests

This commit is contained in:
evgeny committed 2026-10-29 13:34:24 +01:00
1 parent 2f7c65517a
commit 53edd12346
1 file changed
+2 -1
@@ -52,11 +52,12 @@ class CallVideoEngine(context: Context, val id: Long) {
val state = MutableStateFlow(CallVideoState())
val display = MutableStateFlow<Any?>(null)
fun select(settings: CallVideoSettings) { state.value = CallVideoState(settings) }
fun stop() {
fun stop(): Boolean {
stops++
check("stop" !in failures) { "video stop unavailable" }
stopped = true
check("stop after" !in failures) { "video stop failed after effect" }
return "pending" !in failures
}
}