mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-26 22:10:01 +00:00
Allow up to 4 concurrent PC queries
This commit is contained in:
1 parent
f0f801ba3f
commit
ee6edd2404
1 file changed
+3
-2
@@ -391,8 +391,9 @@ public class ComputerManagerService extends Service {
|
|||||||
discoveryServiceConnection, Service.BIND_AUTO_CREATE);
|
discoveryServiceConnection, Service.BIND_AUTO_CREATE);
|
||||||
|
|
||||||
// Create the thread pool for updating computer state
|
// Create the thread pool for updating computer state
|
||||||
pollingPool = new ThreadPoolExecutor(1, MAX_CONCURRENT_REQUESTS, Long.MAX_VALUE, TimeUnit.DAYS,
|
pollingPool = new ThreadPoolExecutor(MAX_CONCURRENT_REQUESTS, MAX_CONCURRENT_REQUESTS,
|
||||||
new LinkedBlockingQueue<Runnable>(), new ThreadPoolExecutor.DiscardPolicy());
|
Long.MAX_VALUE, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>(),
|
||||||
|
new ThreadPoolExecutor.DiscardPolicy());
|
||||||
|
|
||||||
// Lookup or generate this device's UID
|
// Lookup or generate this device's UID
|
||||||
idManager = new IdentityManager(this);
|
idManager = new IdentityManager(this);
|
||||||
|
|||||||
Reference in new issue
Block a user