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

MultiServer: exit console task when console thread dies #2068

Conversation

black-sliver
Copy link
Member

What is this fixing or adding?

When running MultiServer without stdin or with broken stdin, the console task will spin in

            while queue.qsize() == 0:
                await asyncio.sleep(0.05)

Returning from the task when the thread dies frees up resources.

@black-sliver black-sliver merged commit eb50e07 into ArchipelagoMW:main Aug 4, 2023
@black-sliver black-sliver deleted the stop-console-task-when-thread-dies branch August 4, 2023 08:01
@ThePhar ThePhar added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Aug 16, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
kl3cks7r pushed a commit to kl3cks7r/Archipelago that referenced this pull request Dec 15, 2023
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants