From 80d52963ef45592e2005afc39b5b3e70b1f5e8e5 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 13 Nov 2016 17:35:12 +0100 Subject: [PATCH] refs #801, temp. fix. avoiding crash during shutdown --- src/blackcore/context/contextsimulatorimpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blackcore/context/contextsimulatorimpl.cpp b/src/blackcore/context/contextsimulatorimpl.cpp index 76e3458f5..b420d18c0 100644 --- a/src/blackcore/context/contextsimulatorimpl.cpp +++ b/src/blackcore/context/contextsimulatorimpl.cpp @@ -611,6 +611,8 @@ namespace BlackCore void CContextSimulator::restoreSimulatorPlugins() { + //! \todo #801, this shutdown flag should not be required + if (this->getRuntime()->isShuttingDown()) { return; } stopSimulatorListeners(); auto enabledSimulators = m_enabledSimulators.getThreadLocal();