mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
nhttpd: fix shutdown path
This commit is contained in:
@@ -109,8 +109,10 @@ void yhttpd_reload_config() {
|
||||
void thread_cleanup (void *p)
|
||||
{
|
||||
Cyhttpd *y = (Cyhttpd *)p;
|
||||
if (y)
|
||||
if (y) {
|
||||
y->stop_webserver();
|
||||
delete y;
|
||||
}
|
||||
y = NULL;
|
||||
}
|
||||
|
||||
@@ -247,7 +249,6 @@ Cyhttpd::Cyhttpd() {
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
Cyhttpd::~Cyhttpd() {
|
||||
stop_webserver();
|
||||
if (webserver)
|
||||
delete webserver;
|
||||
CLanguage::deleteInstance();
|
||||
|
Reference in New Issue
Block a user