delete room from the lobby

Options
Hi Photon community,

when the client tries to create a room, then close his console "disconnected" , OnRoomListUpdate(List roomList) keep returns the same room disconnected client created but with max player = 0.

so now I have 2 rooms with the same name but different max player, and what I need actually to delete the room.

Thanks in advance

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited June 2019
    Options
    Hi @khaledawaled,

    Thank you for choosing Photon!

    so now I have 2 rooms with the same name but different max player
    What you are describing should not happen, is unusual and unexpected.

    Could you provide:

    - expected behaviour vs. actual behaviour
    - minimal repro steps
    - PUN version used
  • khaledawaled
    Options
    Hi @JohnTube,

    after posting the question, I discover that onRoomlistUpdate will be called every time any action happened in the room like ( player joined, player leave, room deleted, a room created.... etc) with the room that action happened on it, so there is no function that returns the actual rooms on the server, I have to cache them every time the user created room, and when room deleted onRoomlistUpdate will return room with property RemovedFromList = true.


    PUN version used: V2