diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-11-01 21:04:27 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-11-01 21:04:27 +0100 |
| commit | d4824831c4c09a19532bb98968c95619d23737aa (patch) | |
| tree | 69ead55705ea8976f2853d37baa7d90be74677fe /src/blissful_monitor.cc | |
| parent | f4602c1bb6f9fe4090ace211c5013f71653bcd4c (diff) | |
Fix quit when BlissfulMonitor is used
Wait for looper to finish, so make sure to cancel the timer when
disconnecting
Diffstat (limited to 'src/blissful_monitor.cc')
| -rw-r--r-- | src/blissful_monitor.cc | 4 |
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(); |
