From dc7e70ae8d86321aaba0ff625d7d5de2e716d552 Mon Sep 17 00:00:00 2001 From: codl Date: Fri, 11 Aug 2017 20:56:45 +0200 Subject: [PATCH] lol thread.run() runs it locally thread.start() runs it in a thread --- lib/brotli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/brotli.py b/lib/brotli.py index cf0fca6..bd4f14c 100644 --- a/lib/brotli.py +++ b/lib/brotli.py @@ -34,7 +34,7 @@ class BrotliCache(object): lock_key = 'brotlicache:lock:{}'.format(digest) if self.redis.set(lock_key, 1, nx=True, ex=10): t = Thread(target=self.compress, args=(cache_key, lock_key, body)) - t.run() + t.start() return response