Make the outer system seq

This commit is contained in:
griffi-gh 2023-03-07 01:59:54 +01:00
parent 0e4c6a94ef
commit 8aa4de1e4c

View file

@ -111,7 +111,7 @@ pub fn update_networking() -> Workload {
( (
check_server_hello_response, check_server_hello_response,
).into_workload().run_if(is_join_state::<{ClientJoinState::Connected as u8}>) ).into_workload().run_if(is_join_state::<{ClientJoinState::Connected as u8}>)
).into_workload() ).into_sequential_workload() //Fixes
} }
pub fn disconnect_on_exit( pub fn disconnect_on_exit(
@ -133,7 +133,7 @@ pub fn disconnect_on_exit(
fn if_just_connected( fn if_just_connected(
network_events: View<NetworkEvent>, network_events: View<NetworkEvent>,
) -> bool { ) -> bool {
network_events.iter().any(|event| matches!(event.0, ClientEvent::Connected(_))) network_events.iter().any(|event| matches!(&event.0, ClientEvent::Connected(_)))
} }
fn is_join_state<const STATE: u8>( fn is_join_state<const STATE: u8>(