From: Raphael Lisicki Date: Tue, 19 Jan 2010 22:58:49 +0000 (+0100) Subject: really minor performance-improvement X-Git-Tag: old-master-branch~162^2~3^2^2~13 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=0fda358da2ede3e65fe6eca6393f50f78dced3df really minor performance-improvement --- diff --git a/lib/cl_roam/src/cl_roam.c b/lib/cl_roam/src/cl_roam.c index aa934066..9a0ca8a3 100644 --- a/lib/cl_roam/src/cl_roam.c +++ b/lib/cl_roam/src/cl_roam.c @@ -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);