mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Allow to pass timeout to obtainNextWorkingUrl
Sometimes timeout for news in launcher, needs to be investigated
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f7c4292695
commit
640ad99520
@@ -183,10 +183,10 @@ void CSwiftLauncher::initStyleSheet()
|
||||
void CSwiftLauncher::loadLatestNews()
|
||||
{
|
||||
CFailoverUrlList newsUrls(sGui->getGlobalSetup().getSwiftLatestNewsUrls());
|
||||
const CUrl newsUrl(newsUrls.obtainNextWorkingUrl());
|
||||
const CUrl newsUrl(newsUrls.obtainNextWorkingUrl(true, 10 * 1000));
|
||||
if (newsUrl.isEmpty())
|
||||
{
|
||||
CLogMessage(this).error("No working news URL in %1") << newsUrls.toQString();
|
||||
CLogMessage(this).warning("No working news URL in %1") << newsUrls.toQString();
|
||||
return;
|
||||
}
|
||||
sGui->getFromNetwork(newsUrl, { this, &CSwiftLauncher::ps_displayLatestNews});
|
||||
|
||||
Reference in New Issue
Block a user