Commit ·
524d696
1
Parent(s): 9308902
"fix_event_loop_blocking"
Browse files
reachy_mini_ha_voice/main.py
CHANGED
|
@@ -149,9 +149,10 @@ class ReachyMiniHaVoice(ReachyMiniApp):
|
|
| 149 |
logger.info(" -> Generic Camera -> http://<ip>:8081/stream")
|
| 150 |
logger.info("=" * 50)
|
| 151 |
|
| 152 |
-
# Wait for stop signal -
|
|
|
|
| 153 |
while not stop_event.is_set():
|
| 154 |
-
|
| 155 |
|
| 156 |
except KeyboardInterrupt:
|
| 157 |
logger.info("Keyboard interruption in main thread... closing server.")
|
|
|
|
| 149 |
logger.info(" -> Generic Camera -> http://<ip>:8081/stream")
|
| 150 |
logger.info("=" * 50)
|
| 151 |
|
| 152 |
+
# Wait for stop signal - keep event loop running
|
| 153 |
+
# We need to keep the event loop alive to handle ESPHome connections
|
| 154 |
while not stop_event.is_set():
|
| 155 |
+
loop.run_until_complete(asyncio.sleep(0.1))
|
| 156 |
|
| 157 |
except KeyboardInterrupt:
|
| 158 |
logger.info("Keyboard interruption in main thread... closing server.")
|