Repository navigation
fix(protocol/gamespy1): ignore stale player list entries - #744
CosminPerRam merged 1 commit into
Conversation
|
Turns out the old code (cd key hash deduplication) was an incomplete solution, as only some servers report the cd key hash. Meaning it still returned duplicate players for servers which do not report the key hash. The new code reliability addresses the duplicates (which are stale entries with the same name). |
CosminPerRam
left a comment
There was a problem hiding this comment.
Supposing the server always sends the stale data after the N reported players count, this is a great fix.
Everything LGTM, please also add a line in the changelog file.
ea555d9 to
3faf29e
Compare
|
@CosminPerRam It's no more than a guess, but it might be that the server allocates a fixed-size array for the list of players. That array might only be implemented to be replaced when players join, not when players leave. So after a player leaves, the data for the remaining players is updated in the first Added a line to changelog now. |
Removed the (now obsolete) handling of keyhash duplicates. Tested successfully on a few servers.
The old code logged a debug message, should we add one here to match?
closes #743