Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -423,9 +423,9 @@ void ScriptEngine::waitTillDoneRunning() { · 422 unmodified lines | ||
| 423 | 423 | qCWarning(scriptengine) << "Script Engine has been running too long, aborting:" << getFilename(); |
| 424 | 424 | abortEvaluation(); |
| 425 | 425 | } else { |
| 426 | − qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename(); | |
| 427 | 426 | auto context = currentContext(); |
| 428 | 427 | if (context) { |
| 428 | + qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename(); | |
| 429 | 429 | context->throwError("Timed out during shutdown"); |
| 430 | 430 | } |
| 431 | 431 | } |
| @@ -450,9 +450,9 @@ void ScriptEngine::waitTillDoneRunning() { · 18 unmodified lines | ||
| 450 | 450 | qCWarning(scriptengine) << "Script Engine has been running too long, aborting:" << getFilename(); |
| 451 | 451 | abortEvaluation(); |
| 452 | 452 | } else { |
| 453 | − qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename(); | |
| 454 | 453 | auto context = currentContext(); |
| 455 | 454 | if (context) { |
| 455 | + qCWarning(scriptengine) << "Script Engine has been running too long, throwing:" << getFilename(); | |
| 456 | 456 | context->throwError("Timed out during shutdown"); |
| 457 | 457 | } |
| 458 | 458 | } |