temporary workaround for hanging when interrupting application before http server started

This commit is contained in:
loki 2021-06-18 20:02:57 +02:00
parent 63d15333f2
commit 7b86ea9e87

View File

@ -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 };