mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add workaround for RuntimeError after program finishes on Windows
This commit is contained in:
parent
263780e6a3
commit
30be4e29fa
@ -118,7 +118,10 @@ def main() -> None:
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
asyncio.run(pferd.run())
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(pferd.run())
|
||||
loop.run_until_complete(asyncio.sleep(1))
|
||||
loop.close()
|
||||
except ConfigOptionError as e:
|
||||
log.unlock()
|
||||
log.error(str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user