Calling LeaveLobby returns PUN in state Authenticated rather than in state ConnectedToMaster

Options
I am using PUN.

After getting connected to the Lobby, I want the ability to go back and be connected to the master server but oustide a Lobby.
The problem is that when I call LeaveLobby, I find myself out of the Master Server as well, is that expected?

Here is my workflow:
PhotonNetwork.ConnectUsingSettings("0.1"); // connectionStateDetailed becomes ConnectedToMaster
...
PhotonNetwork.JoinLobby(); // connectionStateDetailed becomes JoinedLobby
...
PhotonNetwork.LeaveLobby(); // connectionStateDetailed becomes now Authenticated

TL;DR: How do I get back to the ConnectedToMaster state from the JoinedLobby state?

Thanks,
Mauro.

Comments

  • vadim
    Options
    Authenticated means connected to a master and ready to join to a lobby (or create or join a room). So it's basically the same as ConnectedToMaster. It looks a bit confusing and possible could be improved. But currently please just handle both states in the same way.