mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
dequeue() unlinks the file, even if it's been unable to parse it.
This commit is contained in:
parent
2218889b43
commit
5e2f4e9902
2 changed files with 2 additions and 5 deletions
|
@ -1982,10 +1982,8 @@ int process_user_queue(snac *snac)
|
|||
while (xs_list_iter(&p, &fn)) {
|
||||
xs *q_item = dequeue(fn);
|
||||
|
||||
if (q_item == NULL) {
|
||||
snac_log(snac, xs_fmt("process_user_queue q_item error"));
|
||||
if (q_item == NULL)
|
||||
continue;
|
||||
}
|
||||
|
||||
process_user_queue_item(snac, q_item);
|
||||
cnt++;
|
||||
|
|
3
data.c
3
data.c
|
@ -2399,8 +2399,7 @@ xs_dict *dequeue(const char *fn)
|
|||
{
|
||||
xs_dict *obj = queue_get(fn);
|
||||
|
||||
if (obj != NULL)
|
||||
unlink(fn);
|
||||
unlink(fn);
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue