From 1ac240ed77536f259c04edb26953ef445dd4ee37 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 5 Sep 2022 19:28:19 -0500 Subject: fix reset bug in channel_reset() --- src/channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/channel.c b/src/channel.c index ac955a1..a7a3643 100644 --- a/src/channel.c +++ b/src/channel.c @@ -36,8 +36,10 @@ void channel_reset(struct channel_t *chan) chan->pos = 0; int loops = channel_atomic_get(chan->shared.loops); if (loops) { - if (p_atomic_int_dec_and_test(&(chan->shared.loops))) + if (p_atomic_int_dec_and_test(&(chan->shared.loops))) { channel_atomic_set(chan->shared.active, false); + chan->skip = true; + } } } -- cgit v1.2.1