When starting a host, a client is started. When stopping the host later, the same client is not removed from the connected client list. I would expect MLAPI to disconnect and stop the host client.
To Reproduce
- Observe without doing anything,
NetworkingManager.Singleton.ConnectedClientsList has no items
- Call
StartHost()
- Observe
NetworkingManager.Singleton.ConnectedClientsList has one item, which is the host's client
- Call
StopHost()
- [BUG] Observe
NetworkingManager.Singleton.ConnectedClientsList still has one item, which is the host's client
Expected behavior
Host's client is no longer connected and is stopped.
Environment (please complete the following information):
- OS: Windows 10
- Unity Version: 2019.4
- MLAPI Version: 12.1.7
When starting a host, a client is started. When stopping the host later, the same client is not removed from the connected client list. I would expect MLAPI to disconnect and stop the host client.
To Reproduce
NetworkingManager.Singleton.ConnectedClientsListhas no itemsStartHost()NetworkingManager.Singleton.ConnectedClientsListhas one item, which is the host's clientStopHost()NetworkingManager.Singleton.ConnectedClientsListstill has one item, which is the host's clientExpected behavior
Host's client is no longer connected and is stopped.
Environment (please complete the following information):