Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 8 files). Show all
Unified · Split
| @@ -478,10 +478,10 @@ void ScriptManager::waitTillDoneRunning(bool shutdown) { · 477 unmodified lines | |||
| 478 | } | 478 | } |
| 479 | } | 479 | } |
| 480 | #else | 480 | #else |
| 481 | auto startedWaiting = usecTimestampNow(); | 481 | //auto startedWaiting = usecTimestampNow(); |
| 482 | while (!_isDoneRunning) { | 482 | while (!_isDoneRunning) { |
| 483 | // If the final evaluation takes too long, then tell the script engine to stop running | 483 | // If the final evaluation takes too long, then tell the script engine to stop running |
| 484 | auto elapsedUsecs = usecTimestampNow() - startedWaiting; | 484 | //auto elapsedUsecs = usecTimestampNow() - startedWaiting; |
| 485 | // TODO: This part was very unsafe and was causing crashes all the time. | 485 | // TODO: This part was very unsafe and was causing crashes all the time. |
| 486 | // I disabled it for now until we find a safer solution. | 486 | // I disabled it for now until we find a safer solution. |
| 487 | // With it disabled now we get clean shutdowns and restarts. | 487 | // With it disabled now we get clean shutdowns and restarts. |