Skip to content

Conversation

@Roms1383
Copy link
Contributor

This PR refactor thread join on Drop to avoid unwrap.

While it's probably unnecessary in most contexts, I depend on cpal through kira in audioware which runs in a video game plugin context.

In this particular context, the game can reclaim plugin's resource anytime (e.g. when player kill game in Windows taskbar), which, at times, causes race condition leading to CTD like this:
Screenshot 2026-01-27 174944

@Roms1383
Copy link
Contributor Author

By the way errors in CI is because rustc 1.93 requires the changes from 4bc4494, but I can revert the commit if you want.

@Roms1383
Copy link
Contributor Author

I took the liberty to revert the changes from 4bc4494 since I'm concerned a failing CI won't attract your attention 😸

@roderickvd
Copy link
Member

Good one, thanks!

@roderickvd roderickvd merged commit 8184010 into RustAudio:master Jan 29, 2026
31 checks passed
@Roms1383 Roms1383 deleted the fix/safe-join branch January 30, 2026 04:51
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.

2 participants