nhttpd: fix shutdown path

This commit is contained in:
Stefan Seyfried
2013-05-11 17:43:24 +02:00
parent 6b72095f5a
commit 93d01c1987

View File

@@ -109,8 +109,10 @@ void yhttpd_reload_config() {
void thread_cleanup (void *p) void thread_cleanup (void *p)
{ {
Cyhttpd *y = (Cyhttpd *)p; Cyhttpd *y = (Cyhttpd *)p;
if (y) if (y) {
y->stop_webserver();
delete y; delete y;
}
y = NULL; y = NULL;
} }
@@ -247,7 +249,6 @@ Cyhttpd::Cyhttpd() {
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
Cyhttpd::~Cyhttpd() { Cyhttpd::~Cyhttpd() {
stop_webserver();
if (webserver) if (webserver)
delete webserver; delete webserver;
CLanguage::deleteInstance(); CLanguage::deleteInstance();