Disconnect causes "Event loop is closed" #1279
Unanswered
jacobbreen25
asked this question in
Q&A
Replies: 1 comment
-
There should only be one |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am trying to use bleak without using the async context manager (I have found that with the bluetooth device I am using it causes a few issues with latency) as I will later use this to implement into a GUI.
While using the disconnect function in the BleakClient, while it does disconnect, it consistently gives this error:
Traceback (most recent call last): loop.call_soon_threadsafe(handle_session_status_changed, args) self._check_closed() File "C:\redacted\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed
Code
Here is the program I ran to get this error
Beta Was this translation helpful? Give feedback.
All reactions