Changeset 466

Show
Ignore:
Timestamp:
09/02/05 15:10:17 (8 years ago)
Author:
ahu
Message:

throttle would return undefined values

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/syncres.hh

    r433 r466  
    4949    if(i==d_cont.end()) 
    5050      return false; 
    51     if(now > i->second.ttd || i->second.count-- < 0){ 
     51    if(now > i->second.ttd || i->second.count-- < 0) { 
    5252      d_cont.erase(i); 
    53       return true; 
    5453    } 
     54 
     55    return true; // still listed, still blocked 
    5556  } 
    5657  void throttle(time_t now, const Thing& t, unsigned int ttl=0, unsigned int tries=0)