really minor performance-improvement
authorRaphael Lisicki <raphael@ralisi.de>
Tue, 19 Jan 2010 22:58:49 +0000 (23:58 +0100)
committerRaphael Lisicki <raphael@ralisi.de>
Tue, 19 Jan 2010 22:58:49 +0000 (23:58 +0100)
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);