mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
443953b24b533870e981edc3b510b01003e02c76
startLoop is called from the esx:playerLoaded handler in es_extended, which fires again on every character switch, and the loop it creates runs `while true` with no exit. Each relog therefore leaves another points thread running: they all scan the same table, fire the same enter and leave callbacks, and none of them ever stop. A guard makes a second call a no-op. The loop is meant to live for the resource lifetime, so starting it twice is never right. Measured in game on artifact 25770, counting scans over four seconds: before: 1.0 -> 2.0 -> 3.0 loops across two relogs after: 1.0 -> 1.0 -> 1.0 Points keep working, the surviving loop is unaffected. Note this touches the same file as #1831, which guards the callbacks inside the loop. The two changes are in different places and independent of each other.
ESX Legacy
Discord - Website - Documentation
Want more resources? You can browse the Cfx.re Releases board for more!
ESX is the leading framework, trusted by over 12,000 communities to provide the highest quality roleplay servers on FiveM
💗 Supporters
Interested in helping us? Take a look at our patreon
| We would like to sincerely thank the following donors who helped fund the development of ESX. |
|---|
| Mohamad Buhamad - Michael Hein - RoadToSix - Montree Narathong |
| Saydoon - Muhannad alyamani - iSentrie - Wecity - Samuel Nicol |
| Kyle McShea - Artin - Mathias Christoffersen - Jaylan Yilmaz - Callum |
| CONGRESS KW - Michael Hein - Smery sitbon - daZepelin - CMF Community |
Description
Languages
JavaScript
62.3%
Lua
34.8%
TypeScript
1.2%
HTML
0.8%
CSS
0.7%
Other
0.2%