Stop and remove a specific output format manager for this channel.
(self, channel_id, fmt)
| 1247 | return fmt, None |
| 1248 | |
| 1249 | def stop_output_format(self, channel_id, fmt): |
| 1250 | """Stop and remove a specific output format manager for this channel.""" |
| 1251 | channel_managers = self.output_managers.get(channel_id, {}) |
| 1252 | manager = channel_managers.pop(fmt, None) |
| 1253 | if not channel_managers: |
| 1254 | self.output_managers.pop(channel_id, None) |
| 1255 | if manager: |
| 1256 | try: |
| 1257 | manager.stop() |
| 1258 | logger.info(f"[output:{fmt}] Channel {channel_id}: manager stopped") |
| 1259 | except Exception as e: |
| 1260 | logger.error(f"[output:{fmt}] Channel {channel_id}: error stopping manager: {e}") |
| 1261 | |
| 1262 | def stop_all_output_formats(self, channel_id): |
| 1263 | """Stop all output format managers for a channel.""" |
no test coverage detected