mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 02:23:57 +02:00
fix startup-failure case
This commit is contained in:
parent
f36b968860
commit
f9f0a4ea2d
1 changed files with 4 additions and 1 deletions
|
@ -367,9 +367,9 @@ void EntityServer::scriptRequestFinished() {
|
|||
if (_scriptRequestLoop.isRunning()) {
|
||||
_scriptRequestLoop.quit();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
} else if (scriptRequest) {
|
||||
qCritical() << "Failed to download script at" << urlString;
|
||||
// See HTTPResourceRequest::onRequestFinished for interpretation of codes. For example, a 404 is code 6 and 403 is 3. A timeout is 2. Go figure.
|
||||
|
@ -380,6 +380,9 @@ void EntityServer::scriptRequestFinished() {
|
|||
// Hard stop of the assignment client on failure. We don't want anyone to think they have a filter in place when they don't.
|
||||
// Alas, only indications will be the above logging with assignment client restarting repeatedly, and clients will not see any entities.
|
||||
stop();
|
||||
if (_scriptRequestLoop.isRunning()) {
|
||||
_scriptRequestLoop.quit();
|
||||
}
|
||||
}
|
||||
|
||||
void EntityServer::nodeAdded(SharedNodePointer node) {
|
||||
|
|
Loading…
Reference in a new issue