|
@@ -319,6 +319,7 @@ public class PsiphonTunnel {
|
|
|
private final ExecutorService callbackQueue = Executors.newSingleThreadExecutor();
|
|
private final ExecutorService callbackQueue = Executors.newSingleThreadExecutor();
|
|
|
|
|
|
|
|
void shutdownAndAwaitTermination(ExecutorService pool) {
|
|
void shutdownAndAwaitTermination(ExecutorService pool) {
|
|
|
|
|
+ pool.shutdown();
|
|
|
try {
|
|
try {
|
|
|
// Wait a while for existing tasks to terminate
|
|
// Wait a while for existing tasks to terminate
|
|
|
if (!pool.awaitTermination(5, TimeUnit.SECONDS)) {
|
|
if (!pool.awaitTermination(5, TimeUnit.SECONDS)) {
|