From b167e5e3825f61373c612f301bc227105e0eb5e4 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 26 Jul 2017 23:49:42 +0200 Subject: Cleanup timeouts in proxy when freeing --- src/proxy.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/proxy.cc b/src/proxy.cc index 522454a..05a53bb 100644 --- a/src/proxy.cc +++ b/src/proxy.cc @@ -282,6 +282,13 @@ public: close_monitor(it.index()); } + if (timeout_) { + looper_->cancel(timeout_); + } + if (new_timeout_) { + looper_->cancel(new_timeout_); + } + if (accept_socket_) { looper_->remove(accept_socket_.get()); } -- cgit v1.2.3-70-g09d2