1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-23 00:16:41 +00:00

Initialization of main function no longer using loop_until_complete

This commit is contained in:
Dionysus 2023-06-19 03:03:21 -04:00
parent 5c207b6a7c
commit 2c12edc494
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -524,8 +524,7 @@ else:
del found, targets_file del found, targets_file
while True: while True:
random.shuffle(targets) random.shuffle(targets)
loop = asyncio.get_event_loop() asyncio.run(main(targets))
loop.run_until_complete(main(targets))
debug('IRCP has finished probing!') debug('IRCP has finished probing!')
if settings.daemon: if settings.daemon:
backup(time.strftime('%y%m%d-%H%M%S')) backup(time.strftime('%y%m%d-%H%M%S'))