forked from MoonsideGames/MoonWorks
avoid calling Thread.Join from finalizer
parent
40fb313d12
commit
772a0378bb
|
@ -278,10 +278,11 @@ namespace MoonWorks.Audio
|
|||
if (!IsDisposed)
|
||||
{
|
||||
Running = false;
|
||||
Thread.Join();
|
||||
|
||||
if (disposing)
|
||||
{
|
||||
Thread.Join();
|
||||
|
||||
// stop all source voices
|
||||
foreach (var resource in resources)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue