mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-13 02:55:05 +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
|
import multiprocessing
|
||||||
|
|
||||||
multiprocessing.freeze_support()
|
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:
|
else:
|
||||||
import uvloop
|
import uvloop
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue