Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Sandbox.Game.MyInventory IsConnected is not thread safe #574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dummy0815
Copy link

As the 'reachableVertices' list is declared as field the usage of this list inside IsConnected is not thread safe.
The list is only used inside the function and cleared before every usage, I suggest to use an local list instead.

@InflexCZE
Copy link

The code in question is no longer in production codebase of SE.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants