Closing a Room and The OnRoomListUpdate function [Photon]

Hello!
I am following a tutorial on YouTube, using its tips to apply on my “project”.

Now, there is a list UPDATING when a new room is created by OnRoomListUpdate function. But now I have a question.

What if “Player A”, after creating the room, just leaves or close the room?

I mean that “Player A” creates a room and “Player B” can see it in his “Room List”. Then “P
layer A” push an abort button. How to close the room and update “Player B” Room List?

public void Abort()

  {

    PhotonNetwork.CurrentRoom.IsOpen = false;

    PhotonNetwork.LeaveRoom();

    SceneManager.LoadScene(1);

  }

This code is not updating Room List and the “Old” room is still showing!

How can I close that room ? (only the owner is in there. Player A created It and Player A is the only person in the room). Will once closed, the room disappear from “Player B” room list?

Thanks for your help!

This code will update the room status on the server and with a delay, this will also update the lobby / list.
The key problem is likely that this doesn’t happen immediately. Several servers are involved and the updates are also sent to clients every few seconds (rather than immediately).
As soon as the server executed your “IsOpen = false”, nobody else can enter the room (even when they called “join” at the same time).
This is normal and usually not a frequent problem in a busy game. Just handle the “failed to join” callback and find another match.