summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 5c1cb53e36..2276a4588b 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1254,7 +1254,7 @@ void audio_stop(void)
playing = false;
paused = false;
ci.stop_codec = true;
- if (current_fd > 0) {
+ if (current_fd >= 0) {
close(current_fd);
current_fd = -1;
}