[Potential issue] RuntimeError: Event loop is closed
when not using extra loops
#2
Labels
RuntimeError: Event loop is closed
when not using extra loops
#2
PROBLEM
If we want to use a single event loop over the whole execution then it won't be possible because
lcu-driver
library closes current event loop by default. Maybe, I don't understand something. But with justin
AluConnector
class it will NOT work on multiple GUI button presses because the first loop is already dead.The error will be
CURRENT SOLUTION
One possible solution to this is to register a new loop on each GUI button press. But is it a good practice? I kinda doubt. If anybody knows better - please hit me up.
HextechButEfficient/common/connector.py
Lines 56 to 57 in 4e38e8a
LINKS
Even tho these are about websocket issue, where the loop won't close (which is the opposite problem lol) because of oversight design; but still they might change the structure of event loops usage after solving those.
The text was updated successfully, but these errors were encountered: