We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f63fc94 commit 57e3d78Copy full SHA for 57e3d78
sonic-thermalctld/scripts/thermalctld
@@ -810,7 +810,8 @@ class ThermalControlDaemon(daemon_base.DaemonBase):
810
self.log_info("Caught signal '{}' - exiting...".format(SIGNALS_TO_NAMES_DICT[sig]))
811
exit_code = 128 + sig # Make sure we exit with a non-zero code so that supervisor will try to restart us
812
self.thermal_monitor.task_stop()
813
- self.thermal_manager.stop()
+ if self.thermal_manager:
814
+ self.thermal_manager.stop()
815
self.stop_event.set()
816
elif sig in NONFATAL_SIGNALS:
817
self.log_info("Caught signal '{}' - ignoring...".format(SIGNALS_TO_NAMES_DICT[sig]))
0 commit comments