From 9f701b79573b58b27cae875c9a3e0a10a030d0fb Mon Sep 17 00:00:00 2001 From: kaetemi Date: Tue, 31 Jul 2012 18:20:04 +0200 Subject: [PATCH] Changed: #1440 Handle disconnect during abort --HG-- branch : build_pipeline_v3 --- code/nel/tools/pipeline/service/module_pipeline_slave.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/pipeline/service/module_pipeline_slave.cpp b/code/nel/tools/pipeline/service/module_pipeline_slave.cpp index 579b1e23c..4e59b39c3 100644 --- a/code/nel/tools/pipeline/service/module_pipeline_slave.cpp +++ b/code/nel/tools/pipeline/service/module_pipeline_slave.cpp @@ -256,6 +256,8 @@ public: m_SlaveTaskState = SOMEWHERE_INBETWEEN; // Done with the status updating, now do something fancey // ... TODO ... + // not implemented, so abort. + abortBuildTask(NULL); } } } @@ -372,11 +374,12 @@ public: /// Master or user request to abort. virtual void abortBuildTask(NLNET::IModuleProxy *sender) { - if (m_ActiveProject) + if (m_ActiveProject && !m_AbortRequested) { // Sender NULL is request from slave (user exit, command or master disconnect), otherwise request from master. nlassert(sender == NULL || m_Master->getModuleProxy() == sender); // sanity check + nlwarning("Aborting"); // ?TODO? Actually wait for the task manager etc to end before sending the aborted confirmation. CInfoFlags::getInstance()->addFlag(PIPELINE_INFO_ABORTING); m_AbortRequested = true;