Clean-up silly unlinking message.

This commit is contained in:
Jonathan Naylor 2016-10-18 18:06:03 +01:00
parent 80f79122ba
commit 6bb5c177f5
1 changed files with 1 additions and 2 deletions

View File

@ -273,10 +273,9 @@ void CP25Gateway::run()
if (dstId == 9999U || reflector != NULL) {
std::string callsign = lookup->find(srcId);
if (currentId != 9999U)
if (currentId != 9999U) {
LogMessage("Unlinked from reflector %u by %s", currentId, callsign.c_str());
if (currentId != 9999U) {
remoteNetwork.writeUnlink(currentAddr, currentPort);
remoteNetwork.writeUnlink(currentAddr, currentPort);
remoteNetwork.writeUnlink(currentAddr, currentPort);