Ensure signal is disconnected in destructor

pull/2324/head
Patrick Nicolas 2023-07-16 23:29:28 +02:00
parent 1e2b9cb5ed
commit f62b3d0e9d
1 changed files with 1 additions and 0 deletions

View File

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