lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
620 stars 65 forks source link

Do not run client systems when the client is disconnected #134

Closed UkoeHB closed 1 month ago

UkoeHB commented 6 months ago

Running systems for a disconnected client just spams transport errors.

marko-lazic commented 6 months ago

Wrapping that into client_connected() function would have better sound.

UkoeHB commented 6 months ago

Wrapping that into client_connected() function would have better sound.

We need this to run when connecting and connected.

UkoeHB commented 1 month ago

This PR has a bug, since the client needs to update at least once while disconnected in order to send a disconnect packet to the server.

The correct run condition is here.