Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1049,8 +1049,8 @@ void ScriptEngine::forwardHandlerCall(const EntityItemID& entityID, const QStrin · 1048 unmodified lines | ||
| 1049 | 1049 | // since all of these operations can be asynch we will always do the actual work in the response handler |
| 1050 | 1050 | // for the download |
| 1051 | 1051 | void ScriptEngine::loadEntityScript(QWeakPointer<ScriptEngine> theEngine, const EntityItemID& entityID, const QString& entityScript, bool forceRedownload) { |
| 1052 | − // NOTE: If the script content is not currently in the caceh, The LAMBDA here, will be called on the Main Thread | |
| 1053 | − // which means we're guarenteed that it's not the correct thread for the ScriptEngine. This means | |
| 1052 | + // NOTE: If the script content is not currently in the cache, the LAMBDA here will be called on the Main Thread | |
| 1053 | + // which means we're guaranteed that it's not the correct thread for the ScriptEngine. This means | |
| 1054 | 1054 | // when we get into entityScriptContentAvailable() we will likely invokeMethod() to get it over |
| 1055 | 1055 | // to the "Entities" ScriptEngine thread. |
| 1056 | 1056 | DependencyManager::get<ScriptCache>()->getScriptContents(entityScript, [theEngine, entityID](const QString& scriptOrURL, const QString& contents, bool isURL, bool success) { |