mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
nhttpd: fix shutdown path
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user