From 314835cc700e8da34f398419093181a8aa0aa525 Mon Sep 17 00:00:00 2001 From: "Grzegorz Szwoch (sound)" Date: Tue, 23 Feb 2021 21:19:36 +0100 Subject: [PATCH] Fix infinite loop in RtWvOut destructor --- src/RtWvOut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RtWvOut.cpp b/src/RtWvOut.cpp index aef38dc..5e7881a 100644 --- a/src/RtWvOut.cpp +++ b/src/RtWvOut.cpp @@ -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(); }