aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-04-10 09:42:32 +0200
committerGitHub Enterprise <[email protected]>2025-04-10 09:42:32 +0200
commitd03a6c7824c0cf7c8925cbfd61008e305872d895 (patch)
tree94a1388a91a832b8023c3e4961e426cd041c6f16 /src
parent5.6.4 (diff)
downloadzen-d03a6c7824c0cf7c8925cbfd61008e305872d895.tar.xz
zen-d03a6c7824c0cf7c8925cbfd61008e305872d895.zip
multpart download crash (#353)
* fix lambda capture during multipart-download
Diffstat (limited to 'src')
-rw-r--r--src/zen/cmds/builds_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp
index b33ec659d..2562d8244 100644
--- a/src/zen/cmds/builds_cmd.cpp
+++ b/src/zen/cmds/builds_cmd.cpp
@@ -6437,7 +6437,8 @@ namespace {
Work,
NetworkPool,
DownloadStats,
- [&, RemoteChunkIndex, ChunkTargetPtrs](IoBuffer&& Payload) mutable {
+ [&, TotalPartWriteCount, TotalRequestCount, RemoteChunkIndex, ChunkTargetPtrs](
+ IoBuffer&& Payload) mutable {
DownloadStats.RequestsCompleteCount++;
if (DownloadStats.RequestsCompleteCount == TotalRequestCount)
{