mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 02:23:57 +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() {
|
||||
if (_isObservable) {
|
||||
DependencyManager::get<ResourceRequestObserver>()->update(
|
||||
_url, _callerId, _extra + " => ResourceRequest::send" );
|
||||
}
|
||||
if (QThread::currentThread() != thread()) {
|
||||
QMetaObject::invokeMethod(this, "send", Qt::QueuedConnection);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_isObservable) {
|
||||
DependencyManager::get<ResourceRequestObserver>()->update(_url, _callerId, _extra + " => ResourceRequest::send");
|
||||
}
|
||||
|
||||
Q_ASSERT(_state == NotStarted);
|
||||
|
||||
_state = InProgress;
|
||||
|
|
Loading…
Reference in a new issue