Fix asyncio loop stuff
This commit is contained in:
parent
2a25186ac3
commit
c9cd3435a3
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -25,7 +25,7 @@ def rule_to_string(rule: asusrouter.modules.port_forwarding.PortForwardingRule):
|
|||
|
||||
|
||||
def apply_port_changes():
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.new_event_loop()
|
||||
|
||||
session = aiohttp.ClientSession(loop=loop)
|
||||
|
||||
|
|
Loading…
Reference in a new issue