output/httpd: cancel the DeferredMonitor in Close()

This commit is contained in:
Max Kellermann 2017-02-19 20:41:34 +01:00
parent f88f1fca3f
commit f7af1bb8e2
1 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,8 @@ HttpdOutput::Close()
delete timer;
BlockingCall(GetEventLoop(), [this](){
DeferredMonitor::Cancel();
const std::lock_guard<Mutex> protect(mutex);
open = false;
clients.clear_and_dispose(DeleteDisposer());