mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 14:58:44 -06:00
Make the outer system seq
This commit is contained in:
parent
71823c7ada
commit
16e7b7e588
|
@ -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>(
|
||||||
|
|
Loading…
Reference in a new issue