mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 16:22:43 +10:00
feat(process): shared child with stop command
This commit is contained in:
@ -25,5 +25,5 @@ pub fn kill_game(
|
||||
) -> Result<(), String> {
|
||||
let state_lock = state.lock().unwrap();
|
||||
let mut process_manager_lock = state_lock.process_manager.lock().unwrap();
|
||||
process_manager_lock.terminate_child(game_id).map_err(|x| x.to_string())
|
||||
process_manager_lock.kill_game(game_id).map_err(|x| x.to_string())
|
||||
}
|
||||
Reference in New Issue
Block a user