mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Improved VATSIM status file reading
This commit is contained in:
committed by
Mat Sutcliffe
parent
e8b14c435f
commit
b3945adc98
@@ -61,6 +61,12 @@ namespace BlackMisc
|
||||
return CUrl();
|
||||
}
|
||||
|
||||
CUrl CUrlList::getRandomWithout(const CUrl &exclude) const
|
||||
{
|
||||
const CUrlList excludes({ exclude });
|
||||
return this->getRandomWithout(excludes);
|
||||
}
|
||||
|
||||
CUrl CUrlList::getRandomWithout(const CUrlList &exclude) const
|
||||
{
|
||||
CUrlList copy(*this);
|
||||
|
||||
@@ -49,6 +49,9 @@ namespace BlackMisc
|
||||
//! Random location for distributed load, tested
|
||||
CUrl getRandomWorkingUrl(int maxTrials = 2, int timeoutMs = -1) const;
|
||||
|
||||
//! Random location for distributed load
|
||||
CUrl getRandomWithout(const CUrl &exclude) const;
|
||||
|
||||
//! Random location for distributed load
|
||||
CUrl getRandomWithout(const CUrlList &exclude) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user