diff --git a/activitypub.c b/activitypub.c index 1b98829..b658fbc 100644 --- a/activitypub.c +++ b/activitypub.c @@ -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++; diff --git a/data.c b/data.c index a694ded..ecddfc3 100644 --- a/data.c +++ b/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; }