()
| 70 | } |
| 71 | |
| 72 | pub fn run_callbacks() -> Result<(), SteamError> { |
| 73 | if crate::game_server::is_ready_internal() { |
| 74 | return crate::game_server::run_callbacks(); |
| 75 | } |
| 76 | let client = { |
| 77 | let mut state = state().lock().map_err(|_| SteamError::NotReady)?; |
| 78 | ensure_client_from_process_env(&mut state)?; |
| 79 | state.client.clone() |
| 80 | }; |
| 81 | if let Some(client) = client { |
| 82 | client.process_callbacks(crate::events::enqueue_callback); |
| 83 | flush_stats_store(&client)?; |
| 84 | } |
| 85 | Ok(()) |
| 86 | } |
nothing calls this directly
no test coverage detected