“operation set (252) not called because client is not connected” And I have one more problem.

Options

Hello, I just started using PUN 2 and recently I made a pause menu to my multiplayer game and in the pause menu there is a Disconnect button.
public void Disconnect()
{
PhotonNetwork.LeaveRoom();
SceneManager.LoadScene(0);
}

And when I press the button i get this error “ operation set (252) not called because client is not connected or not ready yet. client state leaving”. I am wondering does that mean that my player is not fully connected, because I am having another problem which is that sometimes only one of the players sees the player, does it have something to do with the error and how can I fix both issues? Thanks in advance!