mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-04 20:28:29 +02:00
nhttpd: fix shutdown path
Origin commit data
------------------
Commit: 93d01c1987
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-11 (Sat, 11 May 2013)
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