From 7b86ea9e87fa12f7b9014e7acd2d5ee76ee12cd2 Mon Sep 17 00:00:00 2001 From: loki Date: Fri, 18 Jun 2021 20:02:57 +0200 Subject: [PATCH] temporary workaround for hanging when interrupting application before http server started --- sunshine/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sunshine/main.cpp b/sunshine/main.cpp index daf47cdc..f433b086 100644 --- a/sunshine/main.cpp +++ b/sunshine/main.cpp @@ -200,6 +200,11 @@ int main(int argc, char *argv[]) { return 3; } + //FIXME: Temporary workaround: Simple-Web_server needs to be updated or replaced + if(shutdown_event->peek()) { + return 0; + } + task_pool.start(1); std::thread httpThread { nvhttp::start, shutdown_event };