Changed: #1440 Nicely handle abort button hammering

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 12 years ago
parent cae3ef87cd
commit 1cbcba202c

@ -637,9 +637,14 @@ public:
{ {
if (m_BuildWorking) if (m_BuildWorking)
{ {
m_AbortRequested = true; if (!m_AbortRequested)
CInfoFlags::getInstance()->addFlag(PIPELINE_INFO_ABORTING); {
m_AbortRequested = true;
CInfoFlags::getInstance()->addFlag(PIPELINE_INFO_ABORTING);
}
// Yes, we effectively send the abort again to the slaves, it makes for a more epic abort button hammering experience.
m_BuildTaskQueue.abortQueue(); m_BuildTaskQueue.abortQueue();
m_SlavesMutex.lock(); m_SlavesMutex.lock();

Loading…
Cancel
Save