Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion libraries/script-engine/src/ScriptManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,11 @@ void ScriptManager::waitTillDoneRunning(bool shutdown) {
// if they access Settings or Menu in any of their shutdown code. So:
// Process events for this thread, allowing invokeMethod calls to pass between threads.
QCoreApplication::processEvents();
// FIXME: this scope guard is causing deadlocks and removing
// it seems to not have any ill effect? another thread probably
// has a lock and this function is being called incorrectly
// Events may use script engine so guard is necessary.
auto scopeGuard = _engine->getScopeGuard();
// auto scopeGuard = _engine->getScopeGuard();
_engine->processEvents();
}

Expand Down
Loading