mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-10 09:02:37 +08:00
Add winloop as a performance enhancement
This commit is contained in:
parent
3ce1493e53
commit
99f05369f3
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,12 @@ def main():
|
|||
import multiprocessing
|
||||
|
||||
multiprocessing.freeze_support()
|
||||
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
|
||||
try:
|
||||
# See if we have winloop as a performance enhancement on windows
|
||||
import winloop
|
||||
asyncio.DefaultEventLoopPolicy = winloop.EventLoopPolicy
|
||||
except ModuleNotFoundError:
|
||||
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
|
||||
else:
|
||||
import uvloop
|
||||
|
||||
|
|
Loading…
Reference in a new issue