mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-03 05:40:31 +09:00
fix(power): don't wake up every 500ms to poll while not streaming (#4051)
This commit is contained in:
1 parent
2a9bb98c6e
commit
c0823c7444
3 files changed
+66
-33
No files matched your search
+4
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user