fix(power): don't wake up every 500ms to poll while not streaming (#4051)
This commit is contained in:
parent
2a9bb98c6e
commit
c0823c7444
3 changed files with 66 additions and 33 deletions
|
|
@ -340,6 +340,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
std::thread httpThread {nvhttp::start};
|
||||
std::thread configThread {confighttp::start};
|
||||
std::thread rtspThread {rtsp_stream::start};
|
||||
|
||||
#ifdef _WIN32
|
||||
// If we're using the default port and GameStream is enabled, warn the user
|
||||
|
|
@ -349,10 +350,12 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
#endif
|
||||
|
||||
rtsp_stream::rtpThread();
|
||||
// Wait for shutdown
|
||||
shutdown_event->view();
|
||||
|
||||
httpThread.join();
|
||||
configThread.join();
|
||||
rtspThread.join();
|
||||
|
||||
task_pool.stop();
|
||||
task_pool.join();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue