mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-02 10:05:50 +00:00
fix(linux/portalgrab): don't use TaskPool for xdg_worker thread. (#5822)
This commit is contained in:
1 parent
8fc40974c9
commit
1222ff62ab
4 files changed
+55
-15
No files matched your search
+1
-6
@@ -381,12 +381,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
#endif
|
||||
|
||||
int task_pool_threads = 1;
|
||||
#ifdef SUNSHINE_BUILD_PORTAL
|
||||
// Allocate an extra thread for fallback capture, otherwise a pending XDG user reply can block input.
|
||||
task_pool_threads = 2;
|
||||
#endif
|
||||
task_pool.start(task_pool_threads);
|
||||
task_pool.start(1);
|
||||
|
||||
// Create signal handler after logging has been initialized
|
||||
auto shutdown_event = mail::man->event<bool>(mail::shutdown);
|
||||
|
||||
Reference in new issue
Block a user