This commit is contained in:
Nico Schümann 2014-12-10 00:40:57 +01:00
parent af77f68cd6
commit aaaae93afc

View file

@ -60,6 +60,10 @@ int openConnection() {
}
void updateRouter(const std::string &routerString) {
if (routerLastSeenMap.find(routerString) != routerLastSeenMap.end()) {
routerLastSeenMap.erase(routerString);
}
routerLastSeenMap.insert(std::make_pair(routerString, time(NULL)));
}