diff --git a/ecl/agentexec/agentexec.cpp b/ecl/agentexec/agentexec.cpp index b6b8abb3246..dd6b1298428 100644 --- a/ecl/agentexec/agentexec.cpp +++ b/ecl/agentexec/agentexec.cpp @@ -223,7 +223,7 @@ int CEclAgentExecutionServer::run() //--------------------------------------------------------------------------------- -typedef std::tuple, unsigned, const char *, const char *> ThreadCtx; +typedef std::tuple ThreadCtx; // NB: WaitThread only used by if pool created (see CEclAgentExecutionServer ctor) class WaitThread : public CInterfaceOf @@ -237,7 +237,9 @@ class WaitThread : public CInterfaceOf virtual void init(void *param) override { auto &context = *static_cast(param); - std::tie(item, wfid, wuid, graphName) = context; + IJobQueueItem *tmpItem; + std::tie(tmpItem, wfid, wuid, graphName) = context; + item.set(tmpItem); } virtual bool stop() override {