mirror of
https://github.com/thestk/stk
synced 2026-02-07 09:46:16 +00:00
Merge pull request #105 from vuki/master
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.
|
// Change status flag to signal callback to clear the buffer and close.
|
||||||
status_ = EMPTYING;
|
status_ = EMPTYING;
|
||||||
while ( status_ != FINISHED || dac_.isStreamRunning() == true ) Stk::sleep( 100 );
|
while ( status_ != FINISHED && dac_.isStreamRunning() == true ) Stk::sleep( 100 );
|
||||||
dac_.closeStream();
|
dac_.closeStream();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user