mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-04 10:31:13 -05:00
Differentiate between number of reflectors and parrot
This commit is contained in:
parent
f58bf29080
commit
7c9ff0b672
@ -88,6 +88,12 @@ bool CReflectors::load()
|
||||
::fclose(fp);
|
||||
}
|
||||
|
||||
size_t size = m_reflectors.size();
|
||||
if (size == 0U)
|
||||
return false;
|
||||
|
||||
LogInfo("Loaded %u P25 reflectors", size);
|
||||
|
||||
// Add the Parrot entry
|
||||
if (m_parrotPort > 0U) {
|
||||
CP25Reflector* refl = new CP25Reflector;
|
||||
@ -95,14 +101,9 @@ bool CReflectors::load()
|
||||
refl->m_address = CUDPSocket::lookup(m_parrotAddress);
|
||||
refl->m_port = m_parrotPort;
|
||||
m_reflectors.push_back(refl);
|
||||
LogInfo("Loaded P25 parrot");
|
||||
}
|
||||
|
||||
size_t size = m_reflectors.size();
|
||||
if (size == 0U)
|
||||
return false;
|
||||
|
||||
LogInfo("Loaded %u P25 reflectors", size);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user