Description
When the server disconnects a client through NetworkManager.Singleton.DisconnectClient([clientId]), OnClientDisconnectCallback is not triggered. It is triggered when the client disconnects itself.
Reproduce Steps
- Subscribe to NetworkManager.Singleton.OnClientDisconnectCallback
- On the server, call NetworkManager.Singleton.DisconnectClient([clientId]) with [clientId] any client that is not the server
Actual Outcome
The function subscribed to OnClientDisconnectCallback is not called.
Expected Outcome
The function subscribed to OnClientDisconnectCallback is always called, regardless of how the client got disconnected.
Environment
- OS: macOS Big Sur
- Unity Version: 2022.1.8f1
- Netcode Version: 1.0.0
Additional Context
Possibly related to #795
Description
When the server disconnects a client through NetworkManager.Singleton.DisconnectClient([clientId]), OnClientDisconnectCallback is not triggered. It is triggered when the client disconnects itself.
Reproduce Steps
Actual Outcome
The function subscribed to OnClientDisconnectCallback is not called.
Expected Outcome
The function subscribed to OnClientDisconnectCallback is always called, regardless of how the client got disconnected.
Environment
Additional Context
Possibly related to #795