QFileSystemWatcher, a component, must be destroyed on the thread that created it.
Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -68,9 +68,6 @@ EntityScriptServer::EntityScriptServer(ReceivedMessage& message) : ThreadedAssig · 67 unmodified lines | ||
| 68 | 68 | DependencyManager::set<AudioInjectorManager>(); |
| 69 | 69 | |
| 70 | 70 | DependencyManager::set<ScriptCache>(); |
| 71 | − DependencyManager::set<ScriptEngines>(ScriptEngine::ENTITY_SERVER_SCRIPT); | |
| 72 | − | |
| 73 | − DependencyManager::set<EntityScriptServerServices>(); | |
| 74 | 71 | |
| 75 | 72 | |
| 76 | 73 | // Needed to ensure the creation of the DebugDraw instance on the main thread |
| @@ -253,6 +250,9 @@ void EntityScriptServer::handleEntityScriptCallMethodPacket(QSharedPointer<Recei · 176 unmodified lines | ||
| 253 | 250 | |
| 254 | 251 | |
| 255 | 252 | void EntityScriptServer::run() { |
| 253 | + DependencyManager::set<ScriptEngines>(ScriptEngine::ENTITY_SERVER_SCRIPT); | |
| 254 | + DependencyManager::set<EntityScriptServerServices>(); | |
| 255 | + | |
| 256 | 256 | // make sure we request our script once the agent connects to the domain |
| 257 | 257 | auto nodeList = DependencyManager::get<NodeList>(); |
| 258 | 258 | |