1
0
Fork 0

fix removing...disappeared msg with wrong ip/port

ycs232-kbc
narspt 6 years ago committed by GitHub
parent 9495bb203b
commit 494c33103b
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) {
CYSFRepeater* itRpt = *it;
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);
delete itRpt;
network.setCount(m_repeaters.size());

Loading…
Cancel
Save