/** * Stop the daemon **/ CmdManager::~CmdManager() { Cmd* c; while (work.trypop(c)) { c->cancel(); } MHD_stop_daemon(daemon); }