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:
Paulus Schoutsen authored and GitHub committed 2016-10-02 15:07:23 -07:00
1 parent e455daa61d
commit abb8bcb6d9
4 files changed
+93

No files matched your search

+1
View File
@@ -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()