(
State(state): State<AppState>,
Path(udid): Path<String>,
)
| 2190 | } |
| 2191 | |
| 2192 | async fn shutdown_simulator( |
| 2193 | State(state): State<AppState>, |
| 2194 | Path(udid): Path<String>, |
| 2195 | ) -> Result<Json<Value>, AppError> { |
| 2196 | if android::is_android_id(&udid) { |
| 2197 | let action_udid = udid.clone(); |
| 2198 | run_android_action(state.clone(), move |android| android.shutdown(&action_udid)).await?; |
| 2199 | return android_simulator_payload(state, udid).await; |
| 2200 | } |
| 2201 | forget_lifecycle_session(&state, &udid); |
| 2202 | let action_udid = udid.clone(); |
| 2203 | run_bridge_action(state.clone(), move |bridge| { |
| 2204 | bridge.shutdown_simulator(&action_udid) |
| 2205 | }) |
| 2206 | .await?; |
| 2207 | simulator_payload(state, udid).await |
| 2208 | } |
| 2209 | |
| 2210 | async fn erase_simulator( |
| 2211 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected