No main executor call
This commit is contained in:
@@ -224,7 +224,8 @@ public class ArcNetProvider implements NetProvider{
|
||||
|
||||
@Override
|
||||
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 -> {
|
||||
//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){
|
||||
|
||||
Reference in New Issue
Block a user