mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-21 19:55:22 -05:00
Code cleanups.
This commit is contained in:
parent
79957cfca3
commit
9c6b9bdb61
@ -397,8 +397,7 @@ void CP25Gateway::run()
|
|||||||
lostTimer.stop();
|
lostTimer.stop();
|
||||||
|
|
||||||
currentId = 9999U;
|
currentId = 9999U;
|
||||||
}
|
} else if (reflector != NULL && currentId == 9999U) {
|
||||||
else if (reflector != NULL && currentId == 9999U) {
|
|
||||||
currentId = tg;
|
currentId = tg;
|
||||||
currentAddr = reflector->m_address;
|
currentAddr = reflector->m_address;
|
||||||
currentPort = reflector->m_port;
|
currentPort = reflector->m_port;
|
||||||
@ -415,8 +414,7 @@ void CP25Gateway::run()
|
|||||||
inactivityTimer.start();
|
inactivityTimer.start();
|
||||||
pollTimer.start();
|
pollTimer.start();
|
||||||
lostTimer.start();
|
lostTimer.start();
|
||||||
}
|
} else if (reflector != NULL && currentId != 9999U) {
|
||||||
else if (reflector != NULL && currentId != 9999U) {
|
|
||||||
LogMessage("Unlinked from reflector %u by remote command", currentId);
|
LogMessage("Unlinked from reflector %u by remote command", currentId);
|
||||||
|
|
||||||
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
||||||
@ -440,8 +438,7 @@ void CP25Gateway::run()
|
|||||||
pollTimer.start();
|
pollTimer.start();
|
||||||
lostTimer.start();
|
lostTimer.start();
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
CUtils::dump("Invalid remote command received", buffer, res);
|
CUtils::dump("Invalid remote command received", buffer, res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user