error

Operation LeaveRoom (254) not allowed on current server (MasterServer). how many times i tried to solve the same error gets repeated.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @tonystark,

    Thank you for choosing Photon!

    You are calling PhotonNetwork.LeaveRoom() while not inside a room.
    You could wrap those calls inside
    if (PhotonNetwork.InRoom) { PhotonNetwork.LeaveRoom(); }