PlayerTTL and reconnecting to the room

Options
Hi,
I'm trying to make player able to rejoin a room after leaving or disconnecting.

I set playerTTL = 5 min, and MaxPlayers =2 according to the link
https://forum.photonengine.com/discussion/8062/plugin-how-modify-the-properties-of-a-room-to-be-created

Here's what I did
1. Player A creates a room
2. Player B joins the room
3. Player B leaves the room

I was expecting player B to be able to join the room. Instead, it gives an error that says "room is full".
How can I fix this issue?
public override void OnCreateGame(ICreateGameCallInfo info)
{   
            PluginHost.SetProperties(0, new System.Collections.Hashtable 
            { 
                { PhotonGameProperty.MaxPlayers, 2 },
                { PhotonGameProperty.PlayerTtl, 300000 }
            }, null, true);
}

Comments