aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/worker.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-08-25 13:41:56 +0200
committereldritch horrors <pennae@lix.systems>2024-08-25 21:21:55 +0000
commit398894b85672f5197b5fc3eeae3fa2ec32f03908 (patch)
tree06d7f19c7713ac4a011aa03b4e5e596dfcdddedf /src/libstore/build/worker.cc
parent30a87b4cd5830c6205055ddba5743c69004e37df (diff)
libstore: make Goal::ex a shared_ptr
this makes WorkResult copyable, and just all around easier to deal with. in the future we'll need this to let Goal::work() return a promise for a WorkResult (or even just a Finished) that can be awaited by other goals. Change-Id: Ic5a1ce04c5a0f8e683bd00a2ed2b77a2e28989c1
Diffstat (limited to 'src/libstore/build/worker.cc')
-rw-r--r--src/libstore/build/worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc
index 4a70b272a..1b4633e64 100644
--- a/src/libstore/build/worker.cc
+++ b/src/libstore/build/worker.cc
@@ -150,7 +150,7 @@ void Worker::goalFinished(GoalPtr goal, Goal::Finished & f)
if (!goal->waiters.empty())
logError(f.ex->info());
else
- goal->ex = std::move(f.ex);
+ goal->ex = f.ex;
}
for (auto & i : goal->waiters) {