Open
Description
Hello, I am having an issue with Lobby.Leave() in my game, when calling it, Lobby.IsValid is still true, and I can't join any other lobbies. Here is my Disconnect function:
public void Disconnect(bool returnToMenu = false)
{
Debug.Log("Disconnecting from lobby");
if(NetworkManager.Singleton != null)
NetworkManager.Singleton.Shutdown();
if(currentLobby.HasValue)
{
currentLobby.Value.Leave();
//currentLobby = null;
}
if(returnToMenu)
SceneManager.LoadScene("MainMenu");
}
I have been trying to fix this issue for over a week now, if anyone knows of a solution please let me know!
Metadata
Metadata
Assignees
Labels
No labels