Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 NetGear_Async: Fixed event loop handling
- ⚡️Modified `__init__` method to handle event loop more robustly: - Try to get the running event loop using `asyncio.get_running_loop()` - If no running event loop found, create a new one with `asyncio.new_event_loop()` - Log if creating a new event loop - 🧑💻 Changed launch method to use `self.loop.create_task()` instead of `asyncio.ensure_future()` - Ensures the task is created using the correct event loop instance.
- Loading branch information