Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all
Unified · Split
| @@ -304,7 +304,6 @@ void ScriptEngine::wait() { · 303 unmodified lines | ||
| 304 | 304 | QCoreApplication::processEvents(); |
| 305 | 305 | |
| 306 | 306 | // If the final evaluation takes too long, then tell the script engine to stop evaluating |
| 307 | − static const auto MAX_SCRIPT_EVALUATION_TIME = USECS_PER_SECOND; | |
| 308 | 307 | static const auto MAX_SCRIPT_QUITTING_TIME = 0.5 * MAX_SCRIPT_EVALUATION_TIME; |
| 309 | 308 | auto elapsedUsecs = usecTimestampNow() - startedWaiting; |
| 310 | 309 | if (elapsedUsecs > MAX_SCRIPT_EVALUATION_TIME) { |