mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 15:30:54 +02:00
release pending ATP script request for active AssetServer
This commit is contained in:
parent
c7d184ad6b
commit
d7450b8178
1 changed files with 2 additions and 1 deletions
|
@ -195,6 +195,7 @@ void Agent::requestScript() {
|
|||
// then wait for the nodeConnected signal to fire off the request
|
||||
|
||||
auto assetServer = nodeList->soloNodeOfType(NodeType::AssetServer);
|
||||
|
||||
if (!assetServer || !assetServer->getActiveSocket()) {
|
||||
qDebug() << "Waiting to connect to Asset Server for ATP script download.";
|
||||
_pendingScriptRequest = request;
|
||||
|
@ -209,7 +210,7 @@ void Agent::requestScript() {
|
|||
}
|
||||
|
||||
void Agent::nodeActivated(SharedNodePointer activatedNode) {
|
||||
if (_pendingScriptRequest) {
|
||||
if (_pendingScriptRequest && activatedNode->getType() == NodeType::AssetServer) {
|
||||
qInfo() << "Requesting script at URL" << qPrintable(_pendingScriptRequest->getUrl().toString());
|
||||
|
||||
_pendingScriptRequest->send();
|
||||
|
|
Loading…
Reference in a new issue