mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 18:21:31 -04:00
Fix problems with not noticing removed files
This commit is contained in:
parent
5710d771d0
commit
ffff21d118
@ -36,6 +36,7 @@
|
|||||||
#include "err.h"
|
#include "err.h"
|
||||||
#include "mp3-scanner.h"
|
#include "mp3-scanner.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
|
#define RB_FREE
|
||||||
#include "redblack.h"
|
#include "redblack.h"
|
||||||
|
|
||||||
|
|
||||||
@ -327,8 +328,8 @@ int db_end_initial_update(void) {
|
|||||||
for(val=rblookup(RB_LUFIRST,NULL,db_removed); val != NULL;
|
for(val=rblookup(RB_LUFIRST,NULL,db_removed); val != NULL;
|
||||||
val=rblookup(RB_LUNEXT,val,db_removed)) {
|
val=rblookup(RB_LUNEXT,val,db_removed)) {
|
||||||
db_delete(*((int*)val));
|
db_delete(*((int*)val));
|
||||||
free(val);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINTF(ERR_DEBUG,"Done removing stale items\n");
|
DPRINTF(ERR_DEBUG,"Done removing stale items\n");
|
||||||
|
|
||||||
rbdestroy(db_removed);
|
rbdestroy(db_removed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user