lcu-driver
lcu-driver copied to clipboard
connector.stop() issue
connector.stop() does not work, well it works with that pull requests but not when the League client isnt open
You're right. I'll take a look into that as soon as possible.
You're right. I'll take a look into that as soon as possible.
Pretty sure the issue is because we are trying to listen to websockets, while the league client which hosts the LCU API endpoints is closed. So it gets stuck there, because run_ws ends up being an infinite loop
https://github.com/sousa-andre/lcu-driver/blob/35da052e47807e6ea7a246093778c58a43f2210e/lcu_driver/connection.py#L74
You're right. I'll take a look into that as soon as possible.
Pretty sure the issue is because we are trying to listen to websockets, while the league client which hosts the LCU API endpoints is closed. So it gets stuck there, because run_ws ends up being an infinite loop
https://github.com/sousa-andre/lcu-driver/blob/35da052e47807e6ea7a246093778c58a43f2210e/lcu_driver/connection.py#L74
This problem only happens when the client is not yet opened. I expect to solve this issue in the next release by creating a new method that should be ran in a different thread in order to stop the library when it's looking for new clients.