mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:00:06 +00:00
Don't reinitialize radar sites
This commit is contained in:
parent
7b895333e2
commit
cfac44cc79
1 changed files with 7 additions and 1 deletions
|
|
@ -175,7 +175,13 @@ std::string GetRadarIdFromSiteId(const std::string& siteId)
|
||||||
|
|
||||||
void RadarSite::Initialize()
|
void RadarSite::Initialize()
|
||||||
{
|
{
|
||||||
ReadConfig(defaultRadarSiteFile_);
|
static bool initialized_ = false;
|
||||||
|
|
||||||
|
if (!initialized_)
|
||||||
|
{
|
||||||
|
ReadConfig(defaultRadarSiteFile_);
|
||||||
|
initialized_ = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t RadarSite::ReadConfig(const std::string& path)
|
size_t RadarSite::ReadConfig(const std::string& path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue