mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:16:51 +02:00
Prevent duplicate resources in logs. Thanks to Roxanne!
This commit is contained in:
parent
493262052c
commit
bccca94111
1 changed files with 4 additions and 4 deletions
|
@ -19,15 +19,15 @@
|
||||||
|
|
||||||
|
|
||||||
void ResourceRequest::send() {
|
void ResourceRequest::send() {
|
||||||
if (_isObservable) {
|
|
||||||
DependencyManager::get<ResourceRequestObserver>()->update(
|
|
||||||
_url, _callerId, _extra + " => ResourceRequest::send" );
|
|
||||||
}
|
|
||||||
if (QThread::currentThread() != thread()) {
|
if (QThread::currentThread() != thread()) {
|
||||||
QMetaObject::invokeMethod(this, "send", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, "send", Qt::QueuedConnection);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_isObservable) {
|
||||||
|
DependencyManager::get<ResourceRequestObserver>()->update(_url, _callerId, _extra + " => ResourceRequest::send");
|
||||||
|
}
|
||||||
|
|
||||||
Q_ASSERT(_state == NotStarted);
|
Q_ASSERT(_state == NotStarted);
|
||||||
|
|
||||||
_state = InProgress;
|
_state = InProgress;
|
||||||
|
|
Loading…
Reference in a new issue