pull/590/head
FongMi 7 months ago
parent 3e5bb06d5e
commit 2ea2a59d5f
  1. 2
      app/src/mobile/java/com/fongmi/android/tv/utils/ScanTask.java

@ -65,7 +65,7 @@ public class ScanTask {
} }
private void getDevice(List<String> urls) throws Exception { private void getDevice(List<String> urls) throws Exception {
CountDownLatch cd = new CountDownLatch(urls.size()); CountDownLatch cd = new CountDownLatch(urls.size() - 1);
for (String url : urls) executor.execute(() -> findDevice(cd, url)); for (String url : urls) executor.execute(() -> findDevice(cd, url));
cd.await(); cd.await();
} }

Loading…
Cancel
Save