diff --git a/wapitiCore/net/crawler.py b/wapitiCore/net/crawler.py index 1e0151155..d7b19c493 100644 --- a/wapitiCore/net/crawler.py +++ b/wapitiCore/net/crawler.py @@ -31,7 +31,6 @@ from time import sleep from typing import Tuple, List import asyncio -from os import cpu_count # Third-parties import httpx @@ -112,7 +111,7 @@ async def inner_wrapper(*args, **kwargs): final_excep = None for counter in range(times): if counter > 0: - sleep(delay) + await asyncio.sleep(delay) try: value = await function(*args, **kwargs)