diff options
Diffstat (limited to 'src/lib/buildgraph/executor.cpp')
-rw-r--r-- | src/lib/buildgraph/executor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/buildgraph/executor.cpp b/src/lib/buildgraph/executor.cpp index 3eb75f4fc..d1c609e98 100644 --- a/src/lib/buildgraph/executor.cpp +++ b/src/lib/buildgraph/executor.cpp @@ -762,6 +762,8 @@ void Executor::setState(ExecutorState s) void Executor::setError(const Error &e) { + if (m_state != ExecutorRunning) + return; setState(ExecutorError); cancelJobs(); emit error(e); |