Skip to content

Player.OnQuit callback issue #89

Description

@sarvagya6298

What happened?

If i have multiple players joined in together in a game.
So, when a player leaves onQuit it should remove the player and if i check the count of the players now via Playroomkit.GetPlayers() i should be getting the correct one.

Example, 4 players were in game. So if 1 leaves the count should become 3. But if 2 players leave together within a difference of fractions of ms then the callback works for 1 player only. The current count should now be 1 but it remains 2 because it missed the second callback who left.

Version

0.0.29

What is your environment?

Unity version 2022.3.43f1, windows, chrome

Link to original discussion

https://discord.com/channels/997752993598419044/1128151935669764096/1284579964057813022

Relevant log output

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions