1
0
Fork 0

Merge pull request #141 from narspt/patch-1

fix removing...disappeared msg with wrong ip/port
ycs232-kbc
Jonathan Naylor 6 years ago committed by GitHub
commit 70eeed653b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -285,7 +285,7 @@ void CYSFReflector::run()
for (std::vector<CYSFRepeater*>::iterator it = m_repeaters.begin(); it != m_repeaters.end(); ++it) { for (std::vector<CYSFRepeater*>::iterator it = m_repeaters.begin(); it != m_repeaters.end(); ++it) {
CYSFRepeater* itRpt = *it; CYSFRepeater* itRpt = *it;
if (itRpt->m_timer.hasExpired()) { if (itRpt->m_timer.hasExpired()) {
LogMessage("Removing %s (%s:%u) disappeared", itRpt->m_callsign.c_str(), ::inet_ntoa(address), port); LogMessage("Removing %s (%s:%u) disappeared", itRpt->m_callsign.c_str(), ::inet_ntoa(itRpt->m_address), itRpt->m_port);
m_repeaters.erase(it); m_repeaters.erase(it);
delete itRpt; delete itRpt;
network.setCount(m_repeaters.size()); network.setCount(m_repeaters.size());

Loading…
Cancel
Save