temporary workaround for hanging when interrupting application before http server started
This commit is contained in:
parent
63d15333f2
commit
7b86ea9e87
1 changed files with 5 additions and 0 deletions
|
|
@ -200,6 +200,11 @@ int main(int argc, char *argv[]) {
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//FIXME: Temporary workaround: Simple-Web_server needs to be updated or replaced
|
||||||
|
if(shutdown_event->peek()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
task_pool.start(1);
|
task_pool.start(1);
|
||||||
|
|
||||||
std::thread httpThread { nvhttp::start, shutdown_event };
|
std::thread httpThread { nvhttp::start, shutdown_event };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue