Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

singleEntityStreamInPerTick data race #1

Open
xxshady opened this issue Jul 30, 2022 · 0 comments
Open

singleEntityStreamInPerTick data race #1

xxshady opened this issue Jul 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@xxshady
Copy link
Owner

xxshady commented Jul 30, 2022

There is a need to add a check if an entity is no longer "in stream".

const nextTick = Entity.getByID(entityId)?.pool.singleEntityStreamInPerTick
if (nextTick == null) {
this.log.warn(`unknown entity: ${entityId} streamIn`)
continue
}
if (nextTick) await alt.Utils.wait(0)

@xxshady xxshady added the bug Something isn't working label Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant