Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: cleaning up usersessions could modify the list while iterating #12

Merged
merged 1 commit into from Apr 18, 2020

Conversation

TrueBrain
Copy link
Member

This causes the Python exception "dictionary changed size during
iteration".

Solve this by first making a new list out of it, before iterating.

This causes the Python exception "dictionary changed size during
iteration".

Solve this by first making a new list out of it, before iterating.
@TrueBrain TrueBrain merged commit b3ab562 into OpenTTD:master Apr 18, 2020
@TrueBrain TrueBrain deleted the fix_bugs branch April 18, 2020 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants