X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/888b8031dcbb859ffb8afbfee2c66ef97363141a..9c55e9e474596295700ab43f8e3d092926ca1452:/server/speaker.c?ds=inline diff --git a/server/speaker.c b/server/speaker.c index 12929b6..8358304 100644 --- a/server/speaker.c +++ b/server/speaker.c @@ -648,7 +648,7 @@ static void mainloop(void) { pthread_mutex_unlock(&lock); } /* Act on the pending SM_PLAY */ - if(pending_playing) { + if(!playing && pending_playing) { pthread_mutex_lock(&lock); playing = pending_playing; pending_playing = 0;