From 93d01c1987726c6ab344f69f799df03d5af8fe7a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 11 May 2013 17:43:24 +0200 Subject: [PATCH] nhttpd: fix shutdown path --- src/nhttpd/yhttpd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nhttpd/yhttpd.cpp b/src/nhttpd/yhttpd.cpp index 834299f12..f3a2bf706 100644 --- a/src/nhttpd/yhttpd.cpp +++ b/src/nhttpd/yhttpd.cpp @@ -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();