SquadJS icon indicating copy to clipboard operation
SquadJS copied to clipboard

Bug fix for 'PLAYER_DISCONNECTED' race condition

Open steelskillet opened this issue 1 year ago • 3 comments

Fixes the bug described in #289.

Implements this by saving the list of oldPlayerInfo that updatePlayerList() creates and then the PLAYER_DISCONNECT event tries to find the player by steam id in the saved oldPlayerInfo list if it couldn't find it in this.players.

steelskillet avatar Nov 12 '23 19:11 steelskillet

Started testing on ASG servers.

steelskillet avatar Nov 18 '23 18:11 steelskillet

Needs a rewrite for the new major squad js version

werewolfboy13 avatar Jan 05 '24 22:01 werewolfboy13

updated, needs further testing still.

steelskillet avatar Jan 06 '24 01:01 steelskillet