From 876aa263193549b0185b2fea032d4dc0f974446f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 12 Oct 2021 09:52:16 +0200 Subject: [PATCH] daemon/worker: work around a rare crash So far we have no idea how it can happen, but in this (rare) case it seems fine to keep the process running. --- daemon/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/worker.c b/daemon/worker.c index 792d7578a..fc91c712f 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -621,7 +621,7 @@ int qr_task_on_send(struct qr_task *task, const uv_handle_t *handle, int status) return status; // start the timer struct kr_query *qry = array_tail(task->ctx->req.rplan.pending); - if (kr_fails_assert(qry)) + if (kr_fails_assert(qry && task->transport)) return status; size_t timeout = task->transport->timeout; int ret = session_timer_start(s, on_udp_timeout, timeout, 0); -- 2.47.2