You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the client closes, 'await connector.stop()' causes an infinite loop, making the 'async def disconnect(_)' repeat infinitely. I am using the normal code example from the docs:
`from lcu_driver import Connector
connector = Connector()
@connector.ready
async def connect(connection):
print('LCU API is ready to be used.')
@connector.close
async def disconnect(_):
print('The client have been closed!')
await connector.stop()
When the client closes, 'await connector.stop()' causes an infinite loop, making the 'async def disconnect(_)' repeat infinitely. I am using the normal code example from the docs:
`from lcu_driver import Connector
connector = Connector()
@connector.ready
async def connect(connection):
print('LCU API is ready to be used.')
@connector.close
async def disconnect(_):
print('The client have been closed!')
await connector.stop()
@connector.ws.register('/lol-summoner/v1/current-summoner', event_types=('UPDATE',))
async def icon_changed(connection, event):
print(f'The summoner {event.data["displayName"]} was updated.')
connector.start()`
The text was updated successfully, but these errors were encountered: