tweaks numero duo

This commit is contained in:
C10udburst
2022-02-19 16:00:52 +01:00
parent 3312d97b9f
commit 16c3db1820
2 changed files with 26 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ public class PScanRunner {
futures.add(isPortOpen(es, address.getHostAddress(), port, timeoutMS, threadDelay));
});
try {
boolean _1 = es.awaitTermination(200L, TimeUnit.MILLISECONDS);
es.awaitTermination(200L, TimeUnit.MILLISECONDS);
} catch (InterruptedException ignored) {
}
List<PortScannerManager.ScanResult> results = new ArrayList<>();
@@ -52,7 +52,6 @@ public class PScanRunner {
Thread.sleep(delay);
portsScanned++;
try {
//System.out.println(ip + ":" + port);
Socket socket = new Socket();
socket.connect(new InetSocketAddress(ip, port), timeout);
socket.close();