really minor performance-improvement
[olsrd.git] / lib / cl_roam / src / cl_roam.c
index aa93406..9a0ca8a 100644 (file)
@@ -285,8 +285,9 @@ void check_client_list(client_list * clist) {
   if (clist!=NULL && clist->client!=NULL) {
 
     //ping(clist->client);
-       if( ! check_if_associcated(clist->client))
-               clist->client->last_seen+=2;
+         if(clist->client->is_announced==1)
+                 if( ! check_if_associcated(clist->client))
+                         clist->client->last_seen+=2;
     check_for_route(clist->client);