Stop the orchestrator thread.
(self)
| 156 | |
| 157 | # Use Wi-Fi manager's connection check |
| 158 | if self.wifi_manager.check_wifi_connection(): |
| 159 | self.shared_data.wifi_connected = True |
| 160 | if self.orchestrator_thread is None or not self.orchestrator_thread.is_alive(): |
| 161 | logger.info("Starting Orchestrator thread...") |
| 162 | self.orchestrator = Orchestrator() |
| 163 | self.orchestrator_thread = threading.Thread(target=self.orchestrator.run) |
| 164 | self.orchestrator_thread.start() |
| 165 | logger.info("Orchestrator thread started, automatic mode activated.") |
| 166 | else: |
| 167 | logger.info("Orchestrator thread is already running.") |
| 168 | else: |
| 169 | logger.warning("Cannot start Orchestrator yet: Wi-Fi is not connected. Will auto-start when connected.") |
| 170 | |
| 171 | def stop_orchestrator(self): |
| 172 | """Stop the orchestrator thread.""" |
no test coverage detected