cache prune thread is daemon
This commit is contained in:
parent
3a19f8fe72
commit
5a91e654f8
@ -20,7 +20,7 @@ def cache_prune_loop():
|
||||
for key in ctx_cache:
|
||||
if datetime.now() >= ctx_cache[key]['expire']:
|
||||
del ctx_cache[key]
|
||||
Thread(target=cache_prune_loop).start()
|
||||
Thread(target=cache_prune_loop, daemon=True).start()
|
||||
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
def address_string(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user