mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 11:32:34 -05:00
Remove playlist if last file is removed from the playlist on an update
This commit is contained in:
parent
23fa058c64
commit
9727812201
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user