mirror of https://github.com/calzoneman/sync.git
Fix /clean
This commit is contained in:
parent
3666b43f7a
commit
0c52c3f17d
|
@ -423,10 +423,12 @@ Playlist.prototype.clean = function (filter) {
|
|||
if (count < matches.length) {
|
||||
var uid = matches[count].uid;
|
||||
count++;
|
||||
if (self.remove(uid)) {
|
||||
self.channel.sendAll("delete", {
|
||||
uid: uid
|
||||
});
|
||||
self.remove(uid, deleteNext);
|
||||
}
|
||||
deleteNext();
|
||||
} else {
|
||||
// refresh meta only once, at the end
|
||||
self.channel.broadcastPlaylistMeta();
|
||||
|
|
Loading…
Reference in New Issue