Skip to content

Fix lost shutdown signal in MP3 player - #2102

Merged
sunzenshen merged 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:mp3-player-active-song-prevents-close
Aug 30, 2026
Merged

Fix lost shutdown signal in MP3 player#2102
sunzenshen merged 1 commit into
NeotokyoRebuild:masterfrom
sunzenshen:mp3-player-active-song-prevents-close

Conversation

@sunzenshen

Copy link
Copy Markdown
Contributor

Description

Previous attempts to fix the MP3 player blocking game exit relied on sending an EXIT request through the worker channel. That request could be lost when the worker sent an unsolicited Reply during a long-running iteration.

This commit instead latches shutdown state in a flag checked by the worker, removing the exit request from the worker channel entirely. The worker also only sends replies for calls it actually received, preventing the same lost-signal race from occurring again.

Toolchain

  • Windows MSVC VS2022

Linked Issues

@sunzenshen
sunzenshen requested review from a team and nullsystem August 30, 2026 04:16
@nullsystem
nullsystem requested a review from a team August 30, 2026 10:03
@nullsystem nullsystem added the Tournament Priority Issues to be prioritized for the upcoming NT;RE tournament label Aug 30, 2026
@sunzenshen
sunzenshen merged commit 96d5a44 into NeotokyoRebuild:master Aug 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tournament Priority Issues to be prioritized for the upcoming NT;RE tournament

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Game shouldn't get stuck in a seemingly infinite loop after quitting

3 participants