Audio: Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-05-29 19:34:51 +02:00
parent d121393267
commit 28f1d8aa76
6 changed files with 27 additions and 13 deletions

View File

@@ -497,9 +497,9 @@ namespace Nz
void Music::StopThread()
{
if (m_impl->streaming)
{
m_impl->streaming = false;
if (m_impl->thread.joinable())
m_impl->thread.join();
}
}
}