From ee6edd24045b2e244e51d8dec675d879d839eacb Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 21 Jul 2014 22:28:11 -0700 Subject: [PATCH] Allow up to 4 concurrent PC queries --- src/com/limelight/computers/ComputerManagerService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/limelight/computers/ComputerManagerService.java b/src/com/limelight/computers/ComputerManagerService.java index c7e309a7..a0641d06 100644 --- a/src/com/limelight/computers/ComputerManagerService.java +++ b/src/com/limelight/computers/ComputerManagerService.java @@ -391,8 +391,9 @@ public class ComputerManagerService extends Service { discoveryServiceConnection, Service.BIND_AUTO_CREATE); // Create the thread pool for updating computer state - pollingPool = new ThreadPoolExecutor(1, MAX_CONCURRENT_REQUESTS, Long.MAX_VALUE, TimeUnit.DAYS, - new LinkedBlockingQueue(), new ThreadPoolExecutor.DiscardPolicy()); + pollingPool = new ThreadPoolExecutor(MAX_CONCURRENT_REQUESTS, MAX_CONCURRENT_REQUESTS, + Long.MAX_VALUE, TimeUnit.DAYS, new LinkedBlockingQueue(), + new ThreadPoolExecutor.DiscardPolicy()); // Lookup or generate this device's UID idManager = new IdentityManager(this);