No main executor call

This commit is contained in:
Anuken
2024-01-28 11:31:03 -05:00
parent a73b783d98
commit 3be67aa52a
+3 -2
View File
@@ -224,7 +224,8 @@ public class ArcNetProvider implements NetProvider{
@Override @Override
public void pingHost(String address, int port, Cons<Host> valid, Cons<Exception> invalid){ public void pingHost(String address, int port, Cons<Host> valid, Cons<Exception> invalid){
mainExecutor.submit(() -> { //TODO: main executor or not?
//mainExecutor.submit(() -> {
pingHostImpl(address, port, host -> Core.app.post(() -> valid.get(host)), e -> { pingHostImpl(address, port, host -> Core.app.post(() -> valid.get(host)), e -> {
//raw IP addresses can't have SRV records, so don't bother checking //raw IP addresses can't have SRV records, so don't bother checking
@@ -238,7 +239,7 @@ public class ArcNetProvider implements NetProvider{
} }
}); });
}); //});
} }
private void pingRecords(Seq<SRVRecord> records, int index, Cons<Host> valid, Cons<Exception> invalid){ private void pingRecords(Seq<SRVRecord> records, int index, Cons<Host> valid, Cons<Exception> invalid){