Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -979,6 +979,11 @@ void ScriptEngine::updateMemoryCost(const qint64& deltaSize) { · 978 unmodified lines | |||
| 979 | } | 979 | } |
| 980 | 980 | ||
| 981 | void ScriptEngine::timerFired() { | 981 | void ScriptEngine::timerFired() { |
| 982 | if (DependencyManager::get<ScriptEngines>()->isStopped()) { | ||
| 983 | qCDebug(scriptengine) << "Script.timerFired() while shutting down is ignored... parent script:" << getFilename(); | ||
| 984 | return; // bail early | ||
| 985 | } | ||
| 986 | |||
| 982 | QTimer* callingTimer = reinterpret_cast<QTimer*>(sender()); | 987 | QTimer* callingTimer = reinterpret_cast<QTimer*>(sender()); |
| 983 | CallbackData timerData = _timerFunctionMap.value(callingTimer); | 988 | CallbackData timerData = _timerFunctionMap.value(callingTimer); |
| 984 | 989 | ||