lucaspoffo/renet

Bug: client does not disconnect cleanly.

Closed this issue · 2 comments

After calling RenetClient::disconnect(), the method RenetClient::is_connecting() returns true.

Can you show a small example that replicates this behavior? I was not able to make a simple reproduction case, for example, this simple case is working:

let mut connection = RenetClient::new(ConnectionConfig::default());
assert!(connection.is_connecting());
connection.disconnect();
assert!(!connection.is_connecting());

Oh I figured it out, I have a system that replaces the renet client on disconnect, so the new client is always is_connecting().