summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/monitor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/monitor.cc b/src/monitor.cc
index 9b57141..ba95596 100644
--- a/src/monitor.cc
+++ b/src/monitor.cc
@@ -23,7 +23,7 @@ public:
state_(DISCONNECTED) {
}
- ~MonitorImpl() {
+ ~MonitorImpl() override {
do_disconnect(true);
}
@@ -116,6 +116,7 @@ private:
out_->clear();
}
content_skip_ = 0;
+ active_attach_.reset();
looper_->add(sock_.get(), Looper::EVENT_WRITE,
std::bind(&MonitorImpl::event, this, std::placeholders::_1,
std::placeholders::_2));