Skip to content

StopHost() does not remove the host client from connected clients list  #416

Closed
@scott-lin

Description

@scott-lin

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

  1. Observe without doing anything, NetworkingManager.Singleton.ConnectedClientsList has no items
  2. Call StartHost()
  3. Observe NetworkingManager.Singleton.ConnectedClientsList has one item, which is the host's client
  4. Call StopHost()
  5. [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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions