Start the display thread
()
| 261 | self.shared_data.webapp_should_exit = True |
| 262 | |
| 263 | logger.info("Ragnar stopped successfully") |
| 264 | |
| 265 | def is_wifi_connected(self): |
| 266 | """Legacy method - use wifi_manager for new code.""" |
| 267 | if hasattr(self, 'wifi_manager'): |
| 268 | return self.wifi_manager.check_wifi_connection() |
| 269 | else: |
| 270 | # Fallback to original method |
| 271 | result = subprocess.Popen(['nmcli', '-t', '-f', 'active', 'dev', 'wifi'], stdout=subprocess.PIPE, text=True).communicate()[0] |
| 272 | return 'yes' in result |
| 273 | |
| 274 | |
| 275 | @staticmethod |