lucaspoffo / renet

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

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

Closed UkoeHB closed 6 months ago

UkoeHB commented 11 months ago

Running systems for a disconnected client just spams transport errors.

marko-lazic commented 11 months ago

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

UkoeHB commented 11 months ago

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

We need this to run when connecting and connected.

UkoeHB commented 6 months 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.