mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-08 21:24:57 -05:00
Remove playlist if last file is removed from the playlist on an update
This commit is contained in:
@@ -1270,6 +1270,11 @@ int db_delete(int id) {
|
||||
ptail->next=phead->next;
|
||||
}
|
||||
free(phead);
|
||||
|
||||
if(pcurrent->nodes == NULL) {
|
||||
DPRINTF(ERR_DEBUG,"Empty Playlist!\n");
|
||||
db_playlist_count--;
|
||||
}
|
||||
}
|
||||
pcurrent=pcurrent->next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user