summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 177f1a2..165483f 100644
--- a/audio.c
+++ b/audio.c
@@ -672,7 +672,8 @@ static void AlsaThread(void)
usleep(24 * 1000);
continue;
}
- if (AlsaFlushBuffer || AudioPaused) {
+ // timeout or some commands
+ if (!err || AlsaFlushBuffer || AudioPaused) {
continue;
}
if ((err = AlsaPlayRingbuffer())) { // empty / error