Ensure signal is disconnected in destructor
parent
1e2b9cb5ed
commit
f62b3d0e9d
|
@ -95,6 +95,7 @@ class SleeperThread {
|
||||||
}
|
}
|
||||||
|
|
||||||
~SleeperThread() {
|
~SleeperThread() {
|
||||||
|
connection_.disconnect();
|
||||||
stop();
|
stop();
|
||||||
if (thread_.joinable()) {
|
if (thread_.joinable()) {
|
||||||
thread_.join();
|
thread_.join();
|
||||||
|
|
Loading…
Reference in New Issue