Closed UkoeHB closed 11 months ago
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()
.
After calling
RenetClient::disconnect()
, the methodRenetClient::is_connecting()
returns true.