mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 00:40:06 +02:00
CR
This commit is contained in:
parent
ea05fcea0c
commit
12fdec232b
3 changed files with 1 additions and 3 deletions
|
@ -114,7 +114,7 @@ void AssetServer::handleAssetGetInfo(QSharedPointer<NLPacket> packet, SharedNode
|
||||||
replyPacket->writePrimitive(AssetServerError::NO_ERROR);
|
replyPacket->writePrimitive(AssetServerError::NO_ERROR);
|
||||||
replyPacket->writePrimitive(fileInfo.size());
|
replyPacket->writePrimitive(fileInfo.size());
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "Asset not found: " << assetHash.toHex();
|
qDebug() << "Asset not found: " << QString(hexHash);
|
||||||
replyPacket->writePrimitive(AssetServerError::ASSET_NOT_FOUND);
|
replyPacket->writePrimitive(AssetServerError::ASSET_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,6 @@ void AssetRequest::start() {
|
||||||
|
|
||||||
qCDebug(networking) << "Got size of " << _hash << " : " << info.size << " bytes";
|
qCDebug(networking) << "Got size of " << _hash << " : " << info.size << " bytes";
|
||||||
|
|
||||||
// Round up
|
|
||||||
int start = 0, end = _info.size;
|
int start = 0, end = _info.size;
|
||||||
|
|
||||||
auto assetClient = DependencyManager::get<AssetClient>();
|
auto assetClient = DependencyManager::get<AssetClient>();
|
||||||
|
|
|
@ -29,7 +29,6 @@ void AssetResourceRequest::doSend() {
|
||||||
|
|
||||||
connect(request, &AssetRequest::progress, this, &AssetResourceRequest::progress);
|
connect(request, &AssetRequest::progress, this, &AssetResourceRequest::progress);
|
||||||
QObject::connect(request, &AssetRequest::finished, [this](AssetRequest* req) mutable {
|
QObject::connect(request, &AssetRequest::finished, [this](AssetRequest* req) mutable {
|
||||||
|
|
||||||
Q_ASSERT(_state == InProgress);
|
Q_ASSERT(_state == InProgress);
|
||||||
Q_ASSERT(req->getState() == AssetRequest::FINISHED);
|
Q_ASSERT(req->getState() == AssetRequest::FINISHED);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue