output/httpd: cancel the DeferredMonitor in Close()
This commit is contained in:
@@ -271,6 +271,8 @@ HttpdOutput::Close()
|
|||||||
delete timer;
|
delete timer;
|
||||||
|
|
||||||
BlockingCall(GetEventLoop(), [this](){
|
BlockingCall(GetEventLoop(), [this](){
|
||||||
|
DeferredMonitor::Cancel();
|
||||||
|
|
||||||
const std::lock_guard<Mutex> protect(mutex);
|
const std::lock_guard<Mutex> protect(mutex);
|
||||||
open = false;
|
open = false;
|
||||||
clients.clear_and_dispose(DeleteDisposer());
|
clients.clear_and_dispose(DeleteDisposer());
|
||||||
|
Reference in New Issue
Block a user