Ensure signal is disconnected in destructor

This commit is contained in:
Patrick Nicolas 2023-07-16 23:29:28 +02:00
parent 1e2b9cb5ed
commit f62b3d0e9d

View File

@ -95,6 +95,7 @@ class SleeperThread {
} }
~SleeperThread() { ~SleeperThread() {
connection_.disconnect();
stop(); stop();
if (thread_.joinable()) { if (thread_.joinable()) {
thread_.join(); thread_.join();