From ab11bd20851c5bb99f0e164ee5b0ebe3888628c0 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:33:26 +0100 Subject: watchdog: remove thread on destroy --- src/helpers/Watchdog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers/Watchdog.cpp') diff --git a/src/helpers/Watchdog.cpp b/src/helpers/Watchdog.cpp index 92f20dfb..f5d85df7 100644 --- a/src/helpers/Watchdog.cpp +++ b/src/helpers/Watchdog.cpp @@ -2,6 +2,10 @@ #include #include "config/ConfigManager.hpp" +CWatchdog::~CWatchdog() { + m_pWatchdog.reset(); +} + CWatchdog::CWatchdog() { m_iMainThreadPID = pthread_self(); -- cgit v1.2.3