From a9cfecfc9105732b6f5c3e668d7dfe9af76b4473 Mon Sep 17 00:00:00 2001 From: Philippe G Date: Sun, 12 Jul 2020 12:41:52 -0700 Subject: [PATCH] pause: do not change state when already off --- components/squeezelite/slimproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/squeezelite/slimproto.c b/components/squeezelite/slimproto.c index 8522a811..300713a2 100644 --- a/components/squeezelite/slimproto.c +++ b/components/squeezelite/slimproto.c @@ -320,7 +320,7 @@ static void process_strm(u8_t *pkt, int len) { output.pause_frames = interval * status.current_sample_rate / 1000; if (interval) { output.state = OUTPUT_PAUSE_FRAMES; - } else { + } else if (output.state != OUTPUT_OFF) { output.state = OUTPUT_STOPPED; output.stop_time = gettime_ms(); }