Merge pull request #105 from vuki/master

Fix infinite loop in RtWvOut destructor
This commit is contained in:
garyscavone
2021-02-23 17:22:56 -05:00
committed by GitHub

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();
}