mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 02:09:49 +00:00
temporary workaround for hanging when interrupting application before http server started
This commit is contained in:
parent
63d15333f2
commit
7b86ea9e87
@ -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…
Reference in New Issue
Block a user