summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-11-01 21:04:27 +0100
committerJoel Klinghed <the_jk@yahoo.com>2017-11-01 21:04:27 +0100
commitd4824831c4c09a19532bb98968c95619d23737aa (patch)
tree69ead55705ea8976f2853d37baa7d90be74677fe
parentf4602c1bb6f9fe4090ace211c5013f71653bcd4c (diff)
Fix quit when BlissfulMonitor is used
Wait for looper to finish, so make sure to cancel the timer when disconnecting
-rw-r--r--src/blissful_monitor.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blissful_monitor.cc b/src/blissful_monitor.cc
index c17bc10..0f23970 100644
--- a/src/blissful_monitor.cc
+++ b/src/blissful_monitor.cc
@@ -32,6 +32,10 @@ public:
}
void disconnect() override {
monitor_->disconnect();
+ if (timer_) {
+ looper_->cancel(timer_);
+ timer_ = 0;
+ }
}
size_t machines() const override {
return monitor_->machines();