Skip to main content

stop_watching_impl

Function stop_watching_impl 

Source
pub(crate) fn stop_watching_impl(
    state: &AppState,
    device_id: &str,
    resume: bool,
) -> Result<ViewerStopWatchingResult, String>
Expand description

“Stop viewing”: end the device’s open feeds now, and refuse its next ones (stopped_by_host) until the person lets it watch again (resume). Its pairing and grants stay. Only a paired device can be stopped (the hold is cleared on revoke, so one for an unknown id would never be).