mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Ref T149, utility functions for pending URLs
* Do not call read twice in info reader * Threadsafe utility functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
52caf795d1
commit
0cf308450e
@@ -113,7 +113,15 @@ namespace BlackCore
|
||||
void CInfoDataReader::read()
|
||||
{
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
|
||||
const CUrl url(this->getInfoObjectsUrl());
|
||||
const CUrlLogList urlLogList(this->getUrlLogList()); // thread safe copy
|
||||
|
||||
if (urlLogList.hasPending())
|
||||
{
|
||||
CLogMessage(this).info("Info data reading still pending, summary: '%1'") << urlLogList.getSummary();
|
||||
return;
|
||||
}
|
||||
if (!url.isEmpty())
|
||||
{
|
||||
this->getFromNetworkAndLog(url, { this, &CInfoDataReader::parseInfoObjectsData});
|
||||
|
||||
Reference in New Issue
Block a user