Bug fix
This commit is contained in:
parent
af77f68cd6
commit
aaaae93afc
|
@ -60,6 +60,10 @@ int openConnection() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateRouter(const std::string &routerString) {
|
void updateRouter(const std::string &routerString) {
|
||||||
|
if (routerLastSeenMap.find(routerString) != routerLastSeenMap.end()) {
|
||||||
|
routerLastSeenMap.erase(routerString);
|
||||||
|
}
|
||||||
|
|
||||||
routerLastSeenMap.insert(std::make_pair(routerString, time(NULL)));
|
routerLastSeenMap.insert(std::make_pair(routerString, time(NULL)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue