From 3f45710fb233cb058d7d856e1a52413285c38b96 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 15 Jun 2018 16:26:30 -1000 Subject: [PATCH] Fix cook tool crash --- hecl/driver/ToolCook.hpp | 5 ++--- hecl/lib/ClientProcess.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hecl/driver/ToolCook.hpp b/hecl/driver/ToolCook.hpp index 53286fcf4..91a8ed91a 100644 --- a/hecl/driver/ToolCook.hpp +++ b/hecl/driver/ToolCook.hpp @@ -168,9 +168,8 @@ public: { hecl::MultiProgressPrinter printer(true); hecl::ClientProcess cp(&printer); - for (int i=0 ; im_numCookPasses ; ++i) - for (const hecl::ProjectPath& path : m_selectedItems) - m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp, i); + for (const hecl::ProjectPath& path : m_selectedItems) + m_useProj->cookPath(path, printer, m_recursive, m_info.force, m_fast, m_spec, &cp); cp.waitUntilComplete(); return 0; } diff --git a/hecl/lib/ClientProcess.cpp b/hecl/lib/ClientProcess.cpp index 65cafb5ab..2071abc15 100644 --- a/hecl/lib/ClientProcess.cpp +++ b/hecl/lib/ClientProcess.cpp @@ -72,7 +72,7 @@ void ClientProcess::Worker::proc() ClientProcess::ThreadWorker.reset(this); char thrName[64]; - snprintf(thrName, 64, "HECL Worker%d", m_idx); + snprintf(thrName, 64, "HECL Worker %d", m_idx); logvisor::RegisterThreadName(thrName); std::unique_lock lk(m_proc.m_mutex);