mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2025-09-03 13:47:52 -04:00
Another silly bug.
This commit is contained in:
parent
b59901a746
commit
5e71e9c0d9
@ -275,15 +275,16 @@ void CP25Gateway::run()
|
|||||||
if (dstId == 9999U || reflector != NULL) {
|
if (dstId == 9999U || reflector != NULL) {
|
||||||
std::string callsign = lookup->find(srcId);
|
std::string callsign = lookup->find(srcId);
|
||||||
LogMessage("Unlinked from reflector %u by %s", currentId, callsign.c_str());
|
LogMessage("Unlinked from reflector %u by %s", currentId, callsign.c_str());
|
||||||
currentId = dstId;
|
|
||||||
|
|
||||||
if (remoteNetwork != NULL) {
|
if (remoteNetwork != NULL && currentId != 9999U) {
|
||||||
remoteNetwork->writeUnlink(currentAddr, currentPort);
|
remoteNetwork->writeUnlink(currentAddr, currentPort);
|
||||||
remoteNetwork->writeUnlink(currentAddr, currentPort);
|
remoteNetwork->writeUnlink(currentAddr, currentPort);
|
||||||
remoteNetwork->writeUnlink(currentAddr, currentPort);
|
remoteNetwork->writeUnlink(currentAddr, currentPort);
|
||||||
pollTimer.stop();
|
pollTimer.stop();
|
||||||
lostTimer.stop();
|
lostTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentId = dstId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Link to the new reflector
|
// Link to the new reflector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user