Prevent duplicate resources in logs. Thanks to Roxanne!

This commit is contained in:
Zach Fox 2018-10-19 13:21:52 -07:00 committed by Kerry Ivan Kurian
parent 493262052c
commit bccca94111

View file

@ -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;