fix(power): don't wake up every 500ms to poll while not streaming (#4051)

This commit is contained in:
Cameron Gutman 2025-07-06 13:16:56 -05:00 committed by GitHub
commit c0823c7444
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 66 additions and 33 deletions

View file

@ -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();