NetworkLobbyPlayer remains on client disconnect?

When hosting games using the NetworkLobbyManager via the HLAPI Multiplayer Lobby documentation, I’ve notice that when clients disconnect, their player objects are removed but their network lobby player objects are not, even when calling ServerReturnToLobby. Is this intended? And if so, what’s the cleanest way to remove a network lobby player for a disconnecting client?

I followed HLAPI Multiplayer Lobby documentation steps then added an Update method to a NetworkLobbyManager that looks for a key press to call ServerReturnToLobby. If I host a game in the editor, connect as a client in a separate window, ‘ready’ both players to load the game scene, and then close the client application, the disconnecting client’s player object disappears but network lobby player object does not. When I return to the lobby, the network lobby player still remains.

Any help understanding how to approach network lobby player cleanup would be a huge boon to me. Thanks.

The lobby player should be removed when the client disconnects. bug 717379 filed on this

Hi @seanr , is this the same as an issue I came across today? I posted it in the Network Lobby beta asset thread, but it’s similar to this issue.

Thanks seanr. I looked up the bug and added the following clarification:

1 Like