Skip to content

Commit

Permalink
Fix issue#8230 (sonic-net#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sujinmkang authored Aug 16, 2021
1 parent f63fc94 commit 57e3d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sonic-thermalctld/scripts/thermalctld
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,8 @@ class ThermalControlDaemon(daemon_base.DaemonBase):
self.log_info("Caught signal '{}' - exiting...".format(SIGNALS_TO_NAMES_DICT[sig]))
exit_code = 128 + sig # Make sure we exit with a non-zero code so that supervisor will try to restart us
self.thermal_monitor.task_stop()
self.thermal_manager.stop()
if self.thermal_manager:
self.thermal_manager.stop()
self.stop_event.set()
elif sig in NONFATAL_SIGNALS:
self.log_info("Caught signal '{}' - ignoring...".format(SIGNALS_TO_NAMES_DICT[sig]))
Expand Down

0 comments on commit 57e3d78

Please sign in to comment.