mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 23:43:49 +00:00
Add a reload time for the XLX Hosts file.
This commit is contained in:
parent
82e6b90454
commit
a057f757ab
6 changed files with 39 additions and 6 deletions
|
|
@ -768,6 +768,9 @@ int CDMRGateway::run()
|
|||
if (m_xlxNetwork != NULL)
|
||||
m_xlxNetwork->clock(ms);
|
||||
|
||||
if (m_xlxReflectors != NULL)
|
||||
m_xlxReflectors->clock(ms);
|
||||
|
||||
if (voice != NULL)
|
||||
voice->clock(ms);
|
||||
|
||||
|
|
@ -1093,9 +1096,10 @@ bool CDMRGateway::createDMRNetwork2()
|
|||
|
||||
bool CDMRGateway::createXLXNetwork()
|
||||
{
|
||||
std::string fileName = m_conf.getXLXNetworkFile();
|
||||
std::string fileName = m_conf.getXLXNetworkFile();
|
||||
unsigned int reloadTime = m_conf.getXLXNetworkReloadTime();
|
||||
|
||||
m_xlxReflectors = new CReflectors(fileName);
|
||||
m_xlxReflectors = new CReflectors(fileName, reloadTime);
|
||||
|
||||
bool ret = m_xlxReflectors->load();
|
||||
if (!ret) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue