Mercurial > dnsbl
diff src/context.cpp @ 156:a220bfb9211f
add auto whitelisting
author | carl |
---|---|
date | Sun, 08 Jul 2007 09:46:55 -0700 |
parents | 89ce226e5383 |
children | b3ed72ee6564 |
line wrap: on
line diff
--- a/src/context.cpp Sat Jul 07 21:39:45 2007 -0700 +++ b/src/context.cpp Sun Jul 08 09:46:55 2007 -0700 @@ -472,6 +472,7 @@ } } ofs.close(); + need = false; } pthread_mutex_unlock(&mutex); } @@ -512,7 +513,10 @@ rc = new WHITELISTER(fn, days); whitelisters[fn] = rc; } - else rc = (*i).second; + else { + rc = (*i).second; + rc->set_days(days); + } pthread_mutex_unlock(&whitelister_mutex); return rc; }