Photon Automatically assigning Master(Looping issue), When MasterClient leave
In my app, I am manually assigning a user as Master using PhotonNetwork.SetMasterClient(PhotonNetwork.LocalPlayer); and inside OnMasterClientSwitched(Player newMasterClient) I am performing some functions. Everything works perfectly fine till here.
I have a check in place inside OnPlayerLeftRoom(), which checks whether the user that left was MasterClient or not, and if it was Master, then all the users should exit the session as well.
Problem: So, when NewMasterClient exists, Photon automatically assigns another user as master.
Kindly Help, I am stuck.
I want to know how I stop/prevent Photon from doing so.