mirror of
https://github.com/searxng/searxng.git
synced 2024-11-06 01:19:31 +00:00
Change isAlive() to is_alive() as isAlive() is unsupported in newer Python versions
This commit is contained in:
parent
d75f98c764
commit
3b8bd0770b
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ def search_multiple_requests(requests, result_container, start_time, timeout_lim
|
||||||
if th.name == search_id:
|
if th.name == search_id:
|
||||||
remaining_time = max(0.0, timeout_limit - (time() - start_time))
|
remaining_time = max(0.0, timeout_limit - (time() - start_time))
|
||||||
th.join(remaining_time)
|
th.join(remaining_time)
|
||||||
if th.isAlive():
|
if th.is_alive():
|
||||||
result_container.add_unresponsive_engine(th._engine_name, 'timeout')
|
result_container.add_unresponsive_engine(th._engine_name, 'timeout')
|
||||||
logger.warning('engine timeout: {0}'.format(th._engine_name))
|
logger.warning('engine timeout: {0}'.format(th._engine_name))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue