mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibAudio: Only join the background enqueuer thread if has been started
This prevent an assertion failure in SoundPlayer when closing it before trying to play any audio files.
This commit is contained in:
parent
18c559b0e3
commit
140000f37a
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ void ConnectionToServer::die()
|
|||
m_enqueuer_loop->quit(0);
|
||||
}
|
||||
}
|
||||
(void)m_background_audio_enqueuer->join();
|
||||
if (m_background_audio_enqueuer->is_started())
|
||||
(void)m_background_audio_enqueuer->join();
|
||||
}
|
||||
|
||||
ErrorOr<void> ConnectionToServer::async_enqueue(FixedArray<Sample>&& samples)
|
||||
|
|
Loading…
Add table
Reference in a new issue