cache prune thread is daemon

This commit is contained in:
Lamp 2023-07-28 13:34:20 -07:00
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):