commit 03069bc39f4344ac6b078736bc1a1a40d8aa8ef3 from: Omar Polo date: Sat Sep 02 08:42:31 2023 UTC amused-web: playlist_swap misuse commit - cc89e101c87c7ed5a85ba73d65148cdc876c1b02 commit + 03069bc39f4344ac6b078736bc1a1a40d8aa8ef3 blob - e5c8abce4ceec5881bf44405d08a606365cd653d blob + 34624f74845b723d937825aacc834473d1cfd4e6 --- web/web.c +++ web/web.c @@ -494,7 +494,8 @@ imsg_dispatch(int fd, int ev, void *d) if (playlist_tmp.len == 0) { dispatch_event("x:"); off = -1; - } + } else if (playlist_tmp.len == off) + off = -1; playlist_swap(&playlist_tmp, off); memset(&playlist_tmp, 0, sizeof(playlist_tmp)); off = 0;