Start the background fetch thread
(self)
| 273 | self.url_changed.clear() |
| 274 | |
| 275 | def start(self): |
| 276 | """Start the background fetch thread""" |
| 277 | if not self.fetch_thread or not self.fetch_thread.is_alive(): |
| 278 | self.running = True |
| 279 | self.fetch_thread = threading.Thread( |
| 280 | target=self._fetch_loop, |
| 281 | name="StreamFetcher", |
| 282 | daemon=True # Thread will exit when main program does |
| 283 | ) |
| 284 | self.fetch_thread.start() |
| 285 | logging.info("Stream manager started") |
| 286 | |
| 287 | def stop(self): |
| 288 | """Stop the stream manager and cleanup resources""" |
no outgoing calls
no test coverage detected