summaryrefslogtreecommitdiff
path: root/searx/search/checker/impl.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search/checker/impl.py')
-rw-r--r--searx/search/checker/impl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.py
index e54b3f68d..1893a82b9 100644
--- a/searx/search/checker/impl.py
+++ b/searx/search/checker/impl.py
@@ -4,7 +4,6 @@ import typing
import types
import functools
import itertools
-import threading
from time import time
from urllib.parse import urlparse
@@ -385,7 +384,7 @@ class Checker:
engineref_category = search_query.engineref_list[0].category
params = self.processor.get_params(search_query, engineref_category)
if params is not None:
- with threading.RLock():
+ with self.processor.lock:
self.processor.engine.stats['sent_search_count'] += 1
self.processor.search(search_query.query, params, result_container, time(), 5)
return result_container