audio: Remove an assertion that no longer makes sense.

One may happen to call SDL_AudioThreadFinalize when thread_alive is not set.
main
Ryan C. Gordon 2023-07-05 00:52:28 -04:00
parent 86243b2589
commit 3f4f004794
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 0 additions and 1 deletions

View File

@ -663,7 +663,6 @@ void SDL_QuitAudio(void)
void SDL_AudioThreadFinalize(SDL_AudioDevice *device)
{
SDL_assert(SDL_AtomicGet(&device->thread_alive));
if (SDL_AtomicGet(&device->condemned)) {
if (device->thread) {
SDL_DetachThread(device->thread); // no one is waiting for us, just detach ourselves.