diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-20 12:53:25 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-20 12:53:25 +0200 |
commit | e11014c0443ea687ad65a14b9124aa366da7984a (patch) | |
tree | 8c6642ed187dc71cc672cec9f3459aa75134eaa5 /igmp.c | |
parent | fc25e880dfb1f804742006bcdd15ac70d18b4144 (diff) |
Introduce helper for checking if a task is dead
Diffstat (limited to 'igmp.c')
-rw-r--r-- | igmp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -391,8 +391,12 @@ igmp_read_cb(struct cfg *cfg, struct uring_task *task, int res) debug(DBG_IGMP, "task %p, igmp %p, res %i\n", task, igmp, res); - if (res < 0 || task->dead) + assert_task_alive(DBG_IGMP, task); + + if (res < 0) { + error("res: %i\n", res); return; + } task->tbuf->len = res; |