fix(linux/portalgrab): don't use TaskPool for xdg_worker thread. (#5822)

This commit is contained in:
Conn O'Griofa authored and GitHub committed 2026-09-28 09:35:35 -04:00
1 parent 8fc40974c9
commit 1222ff62ab
4 files changed
+55 -15

No files matched your search

+1 -6
View File
@@ -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);