Unify offline detection + offline playlist UX (NetworkStatusController) #86
+4
-1
@@ -109,7 +109,10 @@ class NetworkStatusController @Inject constructor(
|
|||||||
Intent.OpSuccess -> machine.onSuccess()
|
Intent.OpSuccess -> machine.onSuccess()
|
||||||
Intent.OpFailure -> {
|
Intent.OpFailure -> {
|
||||||
machine.onOpFailure(now)
|
machine.onOpFailure(now)
|
||||||
probeOnce() // arbitrate: let /healthz decide if this is real
|
// Arbitrate off the reducer thread: awaiting a stalled
|
||||||
|
// /healthz here would block a concurrent self-proving
|
||||||
|
// success from snapping us straight back to Healthy.
|
||||||
|
scope.launch { probeOnce() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emit(machine.health())
|
emit(machine.health())
|
||||||
|
|||||||
Reference in New Issue
Block a user