Skip to content

Commit 57e3d78

Browse files
authored
Fix issue#8230 (sonic-net#210)
1 parent f63fc94 commit 57e3d78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sonic-thermalctld/scripts/thermalctld

+2-1
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,8 @@ class ThermalControlDaemon(daemon_base.DaemonBase):
810810
self.log_info("Caught signal '{}' - exiting...".format(SIGNALS_TO_NAMES_DICT[sig]))
811811
exit_code = 128 + sig # Make sure we exit with a non-zero code so that supervisor will try to restart us
812812
self.thermal_monitor.task_stop()
813-
self.thermal_manager.stop()
813+
if self.thermal_manager:
814+
self.thermal_manager.stop()
814815
self.stop_event.set()
815816
elif sig in NONFATAL_SIGNALS:
816817
self.log_info("Caught signal '{}' - ignoring...".format(SIGNALS_TO_NAMES_DICT[sig]))

0 commit comments

Comments
 (0)