Protect waiting for event loop from within event loop (#3658)
* Protect waiting for event loop from within event loop * Faster fetching of loop attribute for ident check
This commit is contained in:
1 parent
e455daa61d
commit
abb8bcb6d9
4 files changed
+93
No files matched your search
@@ -58,6 +58,7 @@ def get_test_home_assistant(num_threads=None):
|
||||
stop_event = threading.Event()
|
||||
|
||||
def run_loop():
|
||||
loop._thread_ident = threading.get_ident()
|
||||
loop.run_forever()
|
||||
loop.close()
|
||||
stop_event.set()
|
||||
|
||||
Reference in new issue
Block a user