Bug fix
This commit is contained in:
parent
af77f68cd6
commit
aaaae93afc
1 changed files with 4 additions and 0 deletions
|
@ -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