Commit 09e0c29
committed
Fix RuntimeError about Future being attached to different loop
This fixes an error about
RuntimeError: Task <Task pending name='Task-8' coro=<Event.wait() running at /usr/lib64/python3.8/asyncio/locks.py:309> cb=[_release_waiter(<Future pendi...8094c9070>()]>)() at /usr/lib64/python3.8/asyncio/tasks.py:429]> got Future <Future pending> attached to a different loop
in await asyncio.wait_for(self._notifyevent.wait(), timeout)
at bleakconnection.py, line 1011 parent 9461b0b commit 09e0c29
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments