aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-06-12 13:59:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-06-12 14:11:02 +0300
commit478c790f33fd848bf42203521351f953638dcd68 (patch)
tree2aaa9bdfe5f6d641eaef5572e216d0b887111e9c /mod
parentc0ead88e0d0547a46330cc8b99a6c872ef006340 (diff)
Fix build task handler crash while handling odb::deadlock
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-build-task.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx
index 6be77f6..ff52f6b 100644
--- a/mod/mod-build-task.cxx
+++ b/mod/mod-build-task.cxx
@@ -2261,10 +2261,13 @@ handle (request& rq, response& rs)
{
// Just try with the next rebuild. But first, restore the agent's
// fingerprint and challenge and reset the task manifest and the
- // session that we may have prepared.
+ // session that we have prepared.
//
- agent_fp = move (b->agent_fingerprint);
- challenge = move (b->agent_challenge);
+ assert (task_build != nullptr);
+
+ agent_fp = move (task_build->agent_fingerprint);
+ challenge = move (task_build->agent_challenge);
+ task_build = nullptr;
task_response = task_response_manifest ();
}