mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Simply discard input events that occur when the thread pool has been shutdown (during connection closure)
This commit is contained in:
parent
a1440621f9
commit
ed92f9d28e
@ -47,7 +47,8 @@ public class NvConnection {
|
|||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
|
|
||||||
this.threadPool = new ThreadPoolExecutor(1, 1, Long.MAX_VALUE, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>());
|
this.threadPool = new ThreadPoolExecutor(1, 1, Long.MAX_VALUE, TimeUnit.DAYS,
|
||||||
|
new LinkedBlockingQueue<Runnable>(), new ThreadPoolExecutor.DiscardPolicy());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getMacAddressString() throws SocketException {
|
public static String getMacAddressString() throws SocketException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user