fix entity tree reset / add OST assert for myServer

This commit is contained in:
Stephen Birarda 2015-05-08 11:04:22 -07:00
parent be58347aec
commit fe1b8cc52b
2 changed files with 7 additions and 0 deletions

View file

@ -224,5 +224,9 @@ void Agent::run() {
void Agent::aboutToFinish() {
_scriptEngine.stop();
// our entity tree is going to go away so tell that to the EntityScriptingInterface
DependencyManager::get<EntityScriptingInterface>()->setEntityTree(NULL);
NetworkAccessManager::getInstance().clearAccessCache();
}

View file

@ -68,6 +68,9 @@ bool OctreeSendThread::process() {
quint64 start = usecTimestampNow();
// we'd better have a server at this point, or we're in trouble
assert(_myServer);
// don't do any send processing until the initial load of the octree is complete...
if (_myServer->isInitialLoadComplete()) {
if (_node) {