diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; + } } } |