mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Fix infinite loop in RtWvOut destructor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user