Skip to content

fix(server/state): scope our access to the client properly to prevent deadlock#4008

Open
AvarianKnight wants to merge 1 commit into
citizenfx:masterfrom
AvarianKnight:fix/buckets-deadlock
Open

fix(server/state): scope our access to the client properly to prevent deadlock#4008
AvarianKnight wants to merge 1 commit into
citizenfx:masterfrom
AvarianKnight:fix/buckets-deadlock

Conversation

@AvarianKnight

Copy link
Copy Markdown
Contributor

If you listened to onPlayerBucketChange you would deadlock if you called GetPlayerRoutingBucket, while someone shouldn't do this since the argument is already provided in the event, we should also not deadlock.

This PR applies to the following area(s)

Server

Successfully tested on

Game builds: ..

Platforms: Windows, Linux

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

… deadlock

If you listened to onPlayerBucketChange you would deadlock if you called GetPlayerRoutingBucket, while someone shouldn't do this since the argument is already provided in the event, we should also not deadlock.
@github-actions github-actions Bot added the invalid Requires changes before it's considered valid and can be (re)triaged label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant