This problem isn't easy to fix as there are multiple ways for a player to leave a game :
Leaving using the menu
Leaving by killing the game/shutting down the platform
Disconnection
Some cases are already handled (when the UDP connection stops at least).
Given the use of the serverless patch, UDP is strictly client side, so the check neven happens.
The first thing to do is to also check for the glea (game leave) TCP packet, and end the session in database.
Later on, maybe we'll learn more on how to handle all cases effectively.
This problem isn't easy to fix as there are multiple ways for a player to leave a game :
Some cases are already handled (when the UDP connection stops at least).
Given the use of the serverless patch, UDP is strictly client side, so the check neven happens.
The first thing to do is to also check for the
glea
(game leave) TCP packet, and end the session in database.Later on, maybe we'll learn more on how to handle all cases effectively.