From 7c7742a1750cb7d179a8fce968871f8176791917 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Fri, 17 May 2019 14:23:28 +0300 Subject: [PATCH] #510 - call HTTPServer::Stop on exception --- daemon/HTTPServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 7967806b..5442a866 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -1092,6 +1092,7 @@ namespace http { Accept (); } catch (std::exception& ex) { LogPrint (eLogError, "HTTPServer: failed to start webconsole: ", ex.what ()); + Stop (); } }