Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work done
Explanation about regression with previous fix
(note the same fix applied to base Chobby and zk Chobby didn't have this problem since they don't have the api_analytics module)
Turns out analytics is doing more than expected (not the module I'd have expected to produce actual lobby issues).
Due to a logic error, when the initial socket is disposed of (and now set to nil), once lobby is connected it would stop sending information, and apparently that's what makes the queue status show ok.
Seems analytics is sending one way when lobby is not connected, and when it's connected it sends in a different way.
For those curious, this is the fix for the issue: c5d87c1
More info the socket fixes:
not res and not res == "timeout"
becomesnot res and (not res) == "timeout"
(never true) due to operator precedence.res
, when it's actually aterr
when doing:res, err = client.connect(...)
Related issues