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