Photon realtime Unity - concurrent joins

Hi,

I am using Photon realtime Unity SDK in my project for random player matching. The issue I am facing is that if 2 players decide to join a room at the same time, none of them finds a room and both end up creating there own separate rooms instead of being matched into a single room. How can I solve this issue.?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited February 2018
    Hi @GameChefs,

    Thank you for choosing Photon!

    This is expected as the second client's JoinRandomRoom request may be received by Photon's master server before finishing the room creation process.
    This happens especially during development phase where few clients/players are testing the game.
    Usually, one developer is testing between Unity editor and a build.
    This should not be a problem if you have enough players later on.
    So what you could do now is wait a little bit before trying to find a match or make sure the room creation process has finished.

    This situation has been discussed before in this forum and we will try to add it to the documentation.