Fix infinite loop in RtWvOut destructor

This commit is contained in:
Grzegorz Szwoch (sound)
2021-02-23 21:19:36 +01:00
parent fb15f76d45
commit 314835cc70

View File

@@ -122,7 +122,7 @@ RtWvOut :: ~RtWvOut( void )
{
// Change status flag to signal callback to clear the buffer and close.
status_ = EMPTYING;
while ( status_ != FINISHED || dac_.isStreamRunning() == true ) Stk::sleep( 100 );
while ( status_ != FINISHED && dac_.isStreamRunning() == true ) Stk::sleep( 100 );
dac_.closeStream();
}